import flask from . import _storage app = flask.Flask(__name__) @app.route("/") def predictions(): body = "Predictions" body += "

Prediction


" body += "" body += "" for prediction in sorted(_storage.Storage(".waterspout/predictions.json"), key=lambda x: (x.time, x.swi)): body += "" body += f"" body += "
TimeΔTempDepthWindSWI
{prediction.time}" body += f"{prediction.temperature_difference}" body += f"{prediction.convective_cloud_depth}" body += f"{prediction.wind}" body += f"{prediction.swi}" body += "
" return body