From 273e264659eee61c2e3a7a3d2689421cd8a3d8c8 Mon Sep 17 00:00:00 2001 From: terrtia Date: Mon, 19 Feb 2024 15:31:55 +0100 Subject: [PATCH] fix: [vanity] vanity builder --- bin/lib/objects/Domains.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/objects/Domains.py b/bin/lib/objects/Domains.py index f4c800e4..75b7906d 100755 --- a/bin/lib/objects/Domains.py +++ b/bin/lib/objects/Domains.py @@ -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):