mirror of
https://github.com/30hours/3lips.git
synced 2024-11-18 12:33:58 +00:00
Now its fixed
This commit is contained in:
parent
b558ac3d4e
commit
a17b49149a
2 changed files with 7 additions and 4 deletions
|
@ -62,10 +62,11 @@ def api():
|
||||||
api = request.query_string.decode('utf-8')
|
api = request.query_string.decode('utf-8')
|
||||||
try:
|
try:
|
||||||
reply = message_api_request.send_message(api)
|
reply = message_api_request.send_message(api)
|
||||||
|
print(reply, flush=True)
|
||||||
|
return reply
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
reply = "Exception: " + str(e)
|
reply = "Exception: " + str(e)
|
||||||
print(reply, flush=True)
|
return jsonify(error=reply), 500
|
||||||
return reply
|
|
||||||
|
|
||||||
@app.route("/map/<path:file>")
|
@app.route("/map/<path:file>")
|
||||||
def serve_map(file):
|
def serve_map(file):
|
||||||
|
|
|
@ -15,8 +15,10 @@ function event_radar() {
|
||||||
if (data["detections_localised"].hasOwnProperty(key)) {
|
if (data["detections_localised"].hasOwnProperty(key)) {
|
||||||
const target = data["detections_localised"][key];
|
const target = data["detections_localised"][key];
|
||||||
const points = target["points"];
|
const points = target["points"];
|
||||||
|
|
||||||
console.log(points);
|
for (const point in points) {
|
||||||
|
console.log(points[point]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue