fix : avoid crash when importing multiple articles
Some checks reported errors
continuous-integration/drone Build encountered an error
Some checks reported errors
continuous-integration/drone Build encountered an error
This commit is contained in:
parent
8a93eaf25f
commit
7218dc7291
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue