Skip to content

Commit

Permalink
fix: [vanity] vanity builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Feb 19, 2024
1 parent 88fbe36 commit 273e264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lib/objects/Domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def update_vanity_cluster(domain):
vanity = get_domain_vanity(domain, len_vanity=4)
add = r_crawler.sadd(f'vanity:4:{vanity}', domain)
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():
for vanity in r_crawler.zrange('vanity:onion:4', 0, -1):
Expand Down

0 comments on commit 273e264

Please sign in to comment.