From e3774e25c7e6afd415f3a64843a416047efa629b Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 8 Apr 2023 01:11:49 +0200 Subject: Store dates when predictions were made --- waterspout_radar/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waterspout_radar/web.py') diff --git a/waterspout_radar/web.py b/waterspout_radar/web.py index f43d2c0..332c533 100644 --- a/waterspout_radar/web.py +++ b/waterspout_radar/web.py @@ -8,5 +8,5 @@ config = _config.load(_config.effective_pathname()) @app.route("/") def predictions(): - predictions = sorted(_storage.Storage(config.db), key=lambda x: (x.time, x.swi)) + predictions = sorted(_storage.Storage(config.db), key=lambda x: (x.time, x.made)) return flask.render_template("predictions.html", predictions=predictions) -- cgit v1.1