import flask from . import _storage app = flask.Flask(__name__) @app.route("/") def predictions(): predictions = sorted(_storage.Storage(".waterspout/predictions.json"), key=lambda x: (x.time, x.swi)) return flask.render_template("predictions.html", predictions=predictions)