Files
Research-Digest/reset_seen_papers.py
2025-11-05 12:35:09 -05:00

18 lines
563 B
Python
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
Reset the seen_papers.json file to start fresh.
Run this if you want to see papers again that were previously shown.
"""
import os
import json
SEEN_PAPERS_FILE = "seen_papers.json"
if os.path.exists(SEEN_PAPERS_FILE):
# Backup old file
backup_file = SEEN_PAPERS_FILE.replace('.json', '_backup.json')
os.rename(SEEN_PAPERS_FILE, backup_file)
print(f"✅ Backed up old file to {backup_file}")
print(f"✅ Reset complete! Next run will show all papers as fresh.")
else:
print(" No seen_papers.json file found. Nothing to reset.")