From 6ffef42c2c3f9299b8766a56f7cabb802ec44cac Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Fri, 4 Dec 2020 12:59:59 +0100 Subject: [PATCH] fix undefined var --- geminer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geminer.py b/geminer.py index bcf5510..4bfd78c 100755 --- a/geminer.py +++ b/geminer.py @@ -111,10 +111,10 @@ for dirname, subdirlist, mdlist in os.walk('.'): tags[tag].append(post) else: tags[tag] = [post] - if author in authors: - authors[author].append(post) + if post["author"] in authors: + authors[post["author"]].append(post) else: - authors[author] = [post] + authors[post["author"]] = [post] # Time to write the GMI file with open(gmi_subpath+"/"+gmifile, 'w') as gmi: