From 4c5a0b9906445cedd610e6a86d9e60d42caf0d0c Mon Sep 17 00:00:00 2001 From: terrtia Date: Mon, 19 Feb 2024 15:38:51 +0100 Subject: [PATCH] fix: [vanity] length+1 min vanity = 2 --- bin/lib/objects/Domains.py | 1 + var/www/blueprints/crawler_splash.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lib/objects/Domains.py b/bin/lib/objects/Domains.py index 75b7906d..9d753c23 100755 --- a/bin/lib/objects/Domains.py +++ b/bin/lib/objects/Domains.py @@ -685,6 +685,7 @@ def get_vanity_cluster(vanity, len_vanity=4, nb_min=4): clusters[new_vanity] = 0 clusters[new_vanity] += 1 to_remove = [] + print(clusters) for new_vanity in clusters: if clusters[new_vanity] < nb_min: to_remove.append(new_vanity) diff --git a/var/www/blueprints/crawler_splash.py b/var/www/blueprints/crawler_splash.py index 697d2acb..b57f193d 100644 --- a/var/www/blueprints/crawler_splash.py +++ b/var/www/blueprints/crawler_splash.py @@ -592,7 +592,7 @@ def domains_explorer_vanity_clusters(): @login_analyst def domains_explorer_vanity_explore(): vanity = request.args.get('vanity') - nb_min = request.args.get('min', 4) # TODO SHOW DOMAINS OPTIONS + HARD CODED DOMAINS LIMIT FOR RENDER + nb_min = request.args.get('min', 2) # TODO SHOW DOMAINS OPTIONS + HARD CODED DOMAINS LIMIT FOR RENDER length = len(vanity) if int(nb_min) < 0: nb_min = 4