From: Philipp Spitzer Date: Tue, 26 Feb 2019 22:26:24 +0000 (+0100) Subject: Month has to be specified with 2 digits, year with 4 digits. X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/0d28ef3dfb5db3645cba61437df118507a1e04b8 Month has to be specified with 2 digits, year with 4 digits. --- diff --git a/web/seepark_web.py b/web/seepark_web.py index 1a6c7c6..471d716 100644 --- a/web/seepark_web.py +++ b/web/seepark_web.py @@ -365,9 +365,9 @@ def currentwater(version): return jsonify({"value": value, "timestamp": timestamp}) -@app.route('/report//') +@app.route('/report//') def report(year, month): - """Report for given year and month + """Report for given year (4 digits) and month (2 digits) """ paper_size = (29.7 / 2.54, 21. / 2.54) # A4