Create dictionary of rss items

merge-requests/8/head
Bob Mottram 2020-10-04 22:23:33 +01:00
parent b58298d8aa
commit 03ae084037
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ def getDictFromNewswire(session, baseDir: str) -> {}:
continue
if url.startswith('#'):
continue
result = dict(result.items() + getRSS(session, url).items())
itemsList = getRSS(session, url)
for dateStr, item in itemsList.items():
result[dateStr] = item
sortedResult = OrderedDict(sorted(result.items(), reverse=False))
return sortedResult