Skip to content

Commit

Permalink
fix: [crawler] fix new crawled item id
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jul 14, 2021
1 parent 25813a7 commit 7a652b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,8 @@ def create_item_metadata(item_id, domain, url, port, item_father):
r_serv_metadata.sadd('paste_children:{}'.format(item_father), item_id)

def create_item_id(item_dir, domain):
# remove /
domain = domain.replace('/', '_')
if len(domain) > 215:
UUID = domain[-215:]+str(uuid.uuid4())
else:
Expand Down

0 comments on commit 7a652b5

Please sign in to comment.