Skip to content

Commit

Permalink
fix: [crawlers] fix domain onion cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Mar 5, 2025
1 parent 17d3d2d commit 463baa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def add_domain_correlation_cache(domain, obj_gid):
def save_domain_correlation_cache(is_domain_up, domain):
if is_domain_up:
dom = Domain(domain)
for obj_gid in r_cache.sadd(f'cache:domain:correlation:objs:{domain}'):
for obj_gid in r_cache.smembers(f'cache:domain:correlation:objs:{domain}'):
obj_type, obj_subtype, obj_id = obj_gid.split(':', 2)
if not obj_subtype:
obj_subtype = ''
Expand Down

0 comments on commit 463baa4

Please sign in to comment.