mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
fix: retrieve JSON data directly in sensor_data function
This commit is contained in:
@@ -93,7 +93,8 @@ def database():
|
||||
cursor.close()
|
||||
return str(rows)
|
||||
|
||||
def sensor_data(data):
|
||||
def sensor_data():
|
||||
data = request.get_json()
|
||||
db = get_db()
|
||||
cursor = db.cursor()
|
||||
sql_sensor = "INSERT INTO kobuki_data (name, value) VALUES (%s)"
|
||||
|
Reference in New Issue
Block a user