Refactors control center for traffic lights

This commit is contained in:
David Eder
2021-06-13 18:32:29 +02:00
parent 67b74e93c5
commit a31f330663
4 changed files with 65 additions and 32 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ def get_traffic_light_events():
print("Is the EVENT_STORE_URL running and reachable?")
raise e
return json_util.dumps({'cursor': traffic_lights})
return json_util.dumps(traffic_lights)
@app.route('/api/v1/resources/cars', methods=['GET'])
@@ -65,7 +65,7 @@ def get_traffic_lights():
print("Is the entity_ident_server running and reachable?")
raise e
return json_util.dumps({'cursor': traffic_lights})
return json_util.dumps(traffic_lights)
if __name__ == '__main__':