fix : avoid crash when importing multiple articles
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Quentin Ferrand 2022-04-21 13:34:11 +02:00
parent d5490358fc
commit 4483de7b63

View file

@ -125,7 +125,7 @@ def _rebuild_atom_file(path: str, data: dict, urls: list) -> None:
# rebuild all articles # rebuild all articles
for art, article in enumerate(data['articles']): for art, article in enumerate(data['articles']):
atomentry = atomfeed.add_entry() atomentry = atomfeed.add_entry()
url = urls[art] url = urls[0]
atomentry.guid(url) atomentry.guid(url)
atomentry.link(href=url, rel='alternate') atomentry.link(href=url, rel='alternate')
atomentry.updated(article['updated']) atomentry.updated(article['updated'])