fix undefined var
This commit is contained in:
parent
875a798214
commit
6ffef42c2c
|
@ -111,10 +111,10 @@ for dirname, subdirlist, mdlist in os.walk('.'):
|
||||||
tags[tag].append(post)
|
tags[tag].append(post)
|
||||||
else:
|
else:
|
||||||
tags[tag] = [post]
|
tags[tag] = [post]
|
||||||
if author in authors:
|
if post["author"] in authors:
|
||||||
authors[author].append(post)
|
authors[post["author"]].append(post)
|
||||||
else:
|
else:
|
||||||
authors[author] = [post]
|
authors[post["author"]] = [post]
|
||||||
|
|
||||||
# Time to write the GMI file
|
# Time to write the GMI file
|
||||||
with open(gmi_subpath+"/"+gmifile, 'w') as gmi:
|
with open(gmi_subpath+"/"+gmifile, 'w') as gmi:
|
||||||
|
|
Loading…
Reference in New Issue