From 4490a7d5eda0b2296684fa0a766cc0d4db831912 Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Thu, 3 Dec 2020 20:52:30 +0100 Subject: [PATCH] how about that? --- geminer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())