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

This commit is contained in:
Quentin Ferrand 2022-04-21 13:25:16 +02:00
parent 8a93eaf25f
commit 7218dc7291

View file

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