From 4483de7b6399046e34faa286244c1e466bb65c74 Mon Sep 17 00:00:00 2001 From: Quentin Ferrand Date: Thu, 21 Apr 2022 13:34:11 +0200 Subject: [PATCH] fix : avoid crash when importing multiple articles --- tenkan/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tenkan/files.py b/tenkan/files.py index ab8e1e3..41f76b1 100644 --- a/tenkan/files.py +++ b/tenkan/files.py @@ -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'])