fix undefined var

This commit is contained in:
Guy Godfroy 2020-12-04 12:59:59 +01:00
parent 875a798214
commit 6ffef42c2c
1 changed files with 3 additions and 3 deletions

View File

@ -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: