fix: error on atom rebuild in some cases
This commit is contained in:
parent
df1b0e9cd9
commit
66b451e842
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
if art_output.get('new_file'):
|
||||
urls.append(art_output['url'])
|
||||
if art_output.get('new_file'):
|
||||
new_file = True
|
||||
index_file_write_footer(path)
|
||||
# no need to update atom file if no new articles (write_article func returns url list)
|
||||
|
|
Loading…
Reference in a new issue