feature: Add a log message for every file saved

This commit is contained in:
BexTuychiev 2024-11-28 15:02:29 +05:00
parent d777633b30
commit 137726ca4f
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ def save_news_data():
with open(filename, "w") as f:
json.dump([item.dict() for item in news_data], f, indent=4)
return filename
print(f"{datetime.now()}: Successfully saved the news data.")
if __name__ == "__main__":

View File

@ -54,7 +54,7 @@ def save_firecrawl_news_data():
with open(filename, "w") as f:
json.dump(data["extract"]["news_items"], f, indent=4)
return filename
print(f"{datetime.now()}: Successfully saved the news data.")
if __name__ == "__main__":