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 += f"" body += "
TimeΔTempDepthSWI
{prediction.time}{prediction.temperature_difference}{prediction.convective_cloud_depth}{prediction.swi}
" return body