mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
fix: [vanity] vanity builder
This commit is contained in:
parent
88fbe36f70
commit
273e264659
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue