diff --git a/geminer.py b/geminer.py index ec417c3..62c60a2 100755 --- a/geminer.py +++ b/geminer.py @@ -119,7 +119,7 @@ for dirname, subdirlist, mdlist in os.walk('.'): with open(gmi_subpath+"/"+gmifile, 'w') as gmi: gmi.write(gmitext) -posts_meta.sort(key=lambda p: datetime.strptime(p["date"], "%Y-%m-%d"), reverse=True) +posts_meta.sort(key=lambda p: p["date"], reverse=True) with open(tpl_path+"/index.tpl", 'r') as tpl: template = Template(tpl.read())