From 56518a1450c3209d2179c7786cf859018869d815 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 18 Nov 2018 22:33:58 +0100 Subject: [PATCH] no clue why this works --- webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.py b/webserver.py index 7a1ecb4a..0ecc8409 100644 --- a/webserver.py +++ b/webserver.py @@ -360,7 +360,7 @@ def page_activity(): db_session = db.Session() reports = list(db_session.query(db.ActivityReport).order_by(db.ActivityReport.timestamp.desc()).limit(192).all()) db_session.close() - return render_template("activity.html", activityreports=reversed(reports)) + return render_template("activity.html", activityreports=list(reversed(reports))) @app.route("/api/token")