mirror of https://github.com/CIRCL/AIL-framework
fix: [vanity] length+1 min vanity = 2
parent
273e264659
commit
4c5a0b9906
|
@ -685,6 +685,7 @@ def get_vanity_cluster(vanity, len_vanity=4, nb_min=4):
|
||||||
clusters[new_vanity] = 0
|
clusters[new_vanity] = 0
|
||||||
clusters[new_vanity] += 1
|
clusters[new_vanity] += 1
|
||||||
to_remove = []
|
to_remove = []
|
||||||
|
print(clusters)
|
||||||
for new_vanity in clusters:
|
for new_vanity in clusters:
|
||||||
if clusters[new_vanity] < nb_min:
|
if clusters[new_vanity] < nb_min:
|
||||||
to_remove.append(new_vanity)
|
to_remove.append(new_vanity)
|
||||||
|
|
|
@ -592,7 +592,7 @@ def domains_explorer_vanity_clusters():
|
||||||
@login_analyst
|
@login_analyst
|
||||||
def domains_explorer_vanity_explore():
|
def domains_explorer_vanity_explore():
|
||||||
vanity = request.args.get('vanity')
|
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)
|
length = len(vanity)
|
||||||
if int(nb_min) < 0:
|
if int(nb_min) < 0:
|
||||||
nb_min = 4
|
nb_min = 4
|
||||||
|
|
Loading…
Reference in New Issue