Skip to content

Commit

Permalink
fix: [vanity] length+1 min vanity = 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Feb 19, 2024
1 parent 273e264 commit 4c5a0b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/lib/objects/Domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion var/www/blueprints/crawler_splash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c5a0b9

Please sign in to comment.