From 8818b7d8017aa9e0b9c6182ac38e111cce3de4a2 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Mon, 19 Feb 2024 23:01:52 +0100 Subject: [PATCH] this is the only way to tests things --- parts/server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parts/server.py b/parts/server.py index 524f63b..6ba1f44 100755 --- a/parts/server.py +++ b/parts/server.py @@ -211,8 +211,9 @@ def query(filter_dummy, query): r.close() return json.dumps(l) -@app.route(baseURL+'/map//', defaults={'annotate': None}) -def getMap(containerID, annotate): +@app.route(baseURL+'/map/') +@app.route(baseURL+'/map//') +def getMap(containerID, annotate=None): s = 'select map, overlay from containers where id = :id;' r = db_engine.execute(text(s), id=containerID) l = []