fix : avoid crash when importing multiple articles
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
d5490358fc
commit
4483de7b63
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
|
# 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'])
|
||||||
|
|
Loading…
Reference in a new issue