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)