From 6e77cf7f6b1031a8a5e86f764703bd1d216390c7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Oct 2020 09:40:41 +0100 Subject: [PATCH] More obvious what list entries mean --- newswire.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index d9796967..e814dfeb 100644 --- a/newswire.py +++ b/newswire.py @@ -81,7 +81,11 @@ def xml2StrToDict(xmlStr: str) -> {}: try: publishedDate = \ datetime.strptime(pubDate, "%a, %d %b %Y %H:%M:%S %z") - result[str(publishedDate)] = [title, link, [], '', description] + postFilename = '' + votesStatus = [] + result[str(publishedDate)] = [title, link, + votesStatus, postFilename, + description] parsed = True except BaseException: pass