From 3c926e031f1681b735c02ab491aadb2b8f9d4dc5 Mon Sep 17 00:00:00 2001 From: Johannes Thumshirn Date: Fri, 26 Feb 2021 12:18:03 +0100 Subject: [PATCH] app: fix syntax error Fix syntax error in app.py. Fixes: 5884e19 ("Some pycodestyle cleanups") Signed-off-by: Johannes Thumshirn --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 256528f..d8dfb60 100755 --- a/app.py +++ b/app.py @@ -30,7 +30,7 @@ def impressum(): @app.route('/index.html') def index(): posts = [p for p in pages if "date" in p.meta] - sorted_pages = sorted(posts, reverse=True, key=lambda page + sorted_pages = sorted(posts, reverse=True, key=lambda page: datetime.strptime(page.meta["date"], "%d %b %y")) return render_template('index.html', pages=sorted_pages)