From 66b451e842822dfd299a823ed5403f0a21b57d29 Mon Sep 17 00:00:00 2001 From: Quentin Ferrand Date: Fri, 14 Jan 2022 13:58:32 +0100 Subject: [PATCH] fix: error on atom rebuild in some cases --- tenkan/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tenkan/files.py b/tenkan/files.py index 1f43e3b..ab8e1e3 100644 --- a/tenkan/files.py +++ b/tenkan/files.py @@ -39,8 +39,8 @@ def write_files(path: str, data: dict, max_num_entries: int) -> None: new_file = False for article in data['articles']: art_output = write_article(article, data, path) + urls.append(art_output['url']) if art_output.get('new_file'): - urls.append(art_output['url']) new_file = True index_file_write_footer(path) # no need to update atom file if no new articles (write_article func returns url list)