fix: [vanity] vanity builder

dev
terrtia 2024-02-19 15:31:55 +01:00
parent 88fbe36f70
commit 273e264659
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ def update_vanity_cluster(domain):
vanity = get_domain_vanity(domain, len_vanity=4) vanity = get_domain_vanity(domain, len_vanity=4)
add = r_crawler.sadd(f'vanity:4:{vanity}', domain) add = r_crawler.sadd(f'vanity:4:{vanity}', domain)
if add == 1: if add == 1:
r_crawler.zadd('vanity:onion:4', {vanity: 1}) r_crawler.zadd('vanity:onion:4', {vanity: 1}, incr=True)
def _rebuild_vanity_clusters(): def _rebuild_vanity_clusters():
for vanity in r_crawler.zrange('vanity:onion:4', 0, -1): for vanity in r_crawler.zrange('vanity:onion:4', 0, -1):