summaryrefslogtreecommitdiff
path: root/waterspout_radar/web.py
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-04-08 01:11:49 +0200
committerAki <please@ignore.pl>2023-04-08 01:11:49 +0200
commite3774e25c7e6afd415f3a64843a416047efa629b (patch)
tree7ebd72e7c60cfcd3ce58ba6101eb1c5aed188a28 /waterspout_radar/web.py
parentd7e9b83def504b352b25bb1432a6621e720fb4cd (diff)
downloadwaterspout-radar-master.zip
waterspout-radar-master.tar.gz
waterspout-radar-master.tar.bz2
Store dates when predictions were madeHEADmaster
Diffstat (limited to 'waterspout_radar/web.py')
-rw-r--r--waterspout_radar/web.py2
1 files changed, 1 insertions, 1 deletions
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)