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 4123029..890e681 100644 (file)
@@ -356,7 +356,7 @@ def currentwater(version):
     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
     """