You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def get_last_processed_date():
last_processed_file = Path('last_processed_date.txt')
if last_processed_file.exists():
with open(last_processed_file, 'r') as file:
return datetime.strptime(file.read().strip(), "%Y-%m-%d")
else:
print("No last processed date found, using 2 weeks before today.")
return date.today() - timedelta(days=14)
The text was updated successfully, but these errors were encountered:
OpenStemDocs/stages/python/01_get_open_access_pdfs_duckdb.py
Line 16 in dde9bfc
The text was updated successfully, but these errors were encountered: