From 032f3a0d6288c33cf3b6c16a334bdf4b3270fb54 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 22 Jan 2023 10:02:45 +1100 Subject: [PATCH] Fix device id reference error --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index f2e6a7d..25e7737 100644 --- a/app.py +++ b/app.py @@ -41,7 +41,7 @@ def handle_message(data): current_time = datetime.now().replace( microsecond=0).isoformat() print('' + current_time + ' ' + json.dumps(data)) - db.insert_cadence(data['rpm'], data['device_id']) + db.insert_cadence(data['rpm'], data['id']) @app.route("/api/status", methods=['GET', 'POST'])