Change report API: Use year/month instead of year-month.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 26 Feb 2019 21:09:23 +0000 (22:09 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 26 Feb 2019 21:09:23 +0000 (22:09 +0100)
web/seepark_web.py

index 41230299abbbd65ed49c2beb8aa144d307c50385..890e68126c47170626337d1bc0425a577f83fbcc 100644 (file)
@@ -356,7 +356,7 @@ def currentwater(version):
     return jsonify({"value": value, "timestamp": timestamp})
 
 
     return jsonify({"value": value, "timestamp": timestamp})
 
 
-@app.route('/report/<int:year>-<int:month>')
+@app.route('/report/<int:year>/<int:month>')
 def report(year, month):
     """Report for given year and month
     """
 def report(year, month):
     """Report for given year and month
     """