Skip to content

Commit

Permalink
fix: [vanity] update id domains is up + min vanity = 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Feb 19, 2024
1 parent f07a4b4 commit 88fbe36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/crawlers/Crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def compute(self, capture):
# Origin + History + tags
if self.root_item:
self.domain.set_last_origin(parent_id)
self.domain.update_vanity_cluster()
# Tags
for tag in task.get_tags():
self.domain.add_tag(tag)
Expand All @@ -277,7 +278,6 @@ def compute(self, capture):
self.original_domain.add_history(epoch, root_item=self.root_item)
# crawlers.update_last_crawled_domain(self.original_domain.get_domain_type(), self.original_domain.id, epoch)

self.domain.update_vanity_cluster()
crawlers.update_last_crawled_domain(self.domain.get_domain_type(), self.domain.id, epoch)
print('capture:', capture.uuid, 'completed')
print('task: ', task.uuid, 'completed')
Expand Down
4 changes: 2 additions & 2 deletions var/www/blueprints/crawler_splash.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def domains_search_date_post():
@login_required
@login_analyst
def domains_explorer_vanity_clusters():
nb_min = request.args.get('min', 0)
nb_min = request.args.get('min', 4)
if int(nb_min) < 0:
nb_min = 4
vanity_clusters = Domains.get_vanity_clusters(nb_min=nb_min)
Expand All @@ -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', 0) # TODO SHOW DOMAINS OPTIONS + HARD CODED DOMAINS LIMIT FOR RENDER
nb_min = request.args.get('min', 4) # 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 88fbe36

Please sign in to comment.