From e81662a73786da2b3824273e760b2d279303d997 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 23 Mar 2026 13:40:39 -0700 Subject: fix: re-add generation for merged feed --- generate.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/generate.py b/generate.py index 79c8f11..842d62c 100644 --- a/generate.py +++ b/generate.py @@ -328,14 +328,14 @@ if __name__ == "__main__": dance_around_news_data, wmmt_news ) - # log_output("Creating merged news.json file for all news that are within " + str(constants.DAYS_LIMIT) + " days old") - # log_output("Computing and Attaching Archived IDs for merged feed") - # for item in news: - # if 'archive_hash' not in item: - # hash_value = compute_json_hash(json.dumps(item, sort_keys=True)) - # item['archive_hash'] = hash_value - # if ARCHIVE_NEWS: - # save_news_to_db(news) - # with open(OUTPUT_DIR+'/news.json', 'w') as json_file: - # json.dump(attach_news_meta_data(news), json_file) - # log_output("JOB DONE", "TASK") + log_output("Creating merged news.json file for all news that are within " + str(constants.DAYS_LIMIT) + " days old") + log_output("Computing and Attaching Archived IDs for merged feed") + for item in news: + if 'archive_hash' not in item: + hash_value = compute_json_hash(json.dumps(item, sort_keys=True)) + item['archive_hash'] = hash_value + if ARCHIVE_NEWS: + save_news_to_db(news) + with open(OUTPUT_DIR+'/news.json', 'w') as json_file: + json.dump(attach_news_meta_data(news), json_file) + log_output("JOB DONE", "TASK") -- cgit v1.2.3