Skip to content

Commit

Permalink
Avoid reading duplicate files
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Feb 20, 2025
1 parent b37114a commit 6af48ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odds/backend/scanner/website/website_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def scrape(self, url: str) -> list[str]:
content = data.get('content')
content_type = data.get('content_type')
final_url = data.get('final_url')
content_hash = sha256(content_.encode()).hexdigest()
content_hash = sha256(content.encode()).hexdigest()
content_hash_file = self.CACHE_HASHES / f'{content_hash}.touch'
if not content_hash_file.exists():
with content_hash_file.open('w') as f:
Expand Down

0 comments on commit 6af48ae

Please sign in to comment.