From 04ac3190879fc0493d94b4425726bc9cf109280f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 18 Nov 2018 18:17:46 +0100 Subject: [PATCH] reverse x axis --- webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.py b/webserver.py index 0837af89..efdfa0b0 100644 --- a/webserver.py +++ b/webserver.py @@ -360,7 +360,7 @@ def page_activity(): db_session = db.Session() reports = db_session.query(db.ActivityReport).order_by(db.ActivityReport.timestamp.desc()).limit(192).all() db_session.close() - return render_template("activity.html", activityreports=reports) + return render_template("activity.html", activityreports=reversed(reports)) @app.route("/api/token")