From 4e5bb0cc62cee9f70f766d6bd0992ef0d5b35582 Mon Sep 17 00:00:00 2001 From: npnpatidar <7de6dkm1@duck.com> Date: Mon, 4 Dec 2023 18:36:33 +0530 Subject: [PATCH] summary updation cenceled --- main.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 56d6fc91..7889bd87 100644 --- a/main.py +++ b/main.py @@ -469,12 +469,12 @@ def main(): log_details(f"{new_entries_added} new entries have been added") - new_entries_updated = 0 - for feed in feeds: - new_summary = update_summary_if_ai_summary_is_false(feed) - new_entries_updated = new_entries_updated + new_summary + # new_entries_updated = 0 + # for feed in feeds: + # new_summary = update_summary_if_ai_summary_is_false(feed) + # new_entries_updated = new_entries_updated + new_summary - log_details(f"{new_entries_updated} summaries have been updated") + # log_details(f"{new_entries_updated} summaries have been updated") for feed in feeds: sorting_xml_files_by_date_json(feed) @@ -498,8 +498,8 @@ def main(): with open('index.md', 'a') as index_file: index_file.write(f"\n\n\n ************************************************* \n") index_file.write(f"Total number of new entries: {new_entries_added}\n") - index_file.write( - f"Total number of summaries updated: {new_entries_updated}\n") + # index_file.write( + # f"Total number of summaries updated: {new_entries_updated}\n") index_file.write( f"Finished at: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}\n") index_file.write(f"Total time taken: {minutes} minutes {seconds} seconds\n")