Fix device id reference error

This commit is contained in:
Peter Stockings
2023-01-22 10:02:45 +11:00
parent 56069547c3
commit 032f3a0d62

2
app.py
View File

@@ -41,7 +41,7 @@ def handle_message(data):
current_time = datetime.now().replace( current_time = datetime.now().replace(
microsecond=0).isoformat() microsecond=0).isoformat()
print('' + current_time + ' ' + json.dumps(data)) 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']) @app.route("/api/status", methods=['GET', 'POST'])