1 parent a142f53 commit 70f5e93Copy full SHA for 70f5e93
1 file changed
wsgi.py
@@ -117,7 +117,7 @@ def status(deviceid):
117
return response
118
query-rows = deviceStatus.query.filter(deviceStatus.deviceId==deviceid)
119
row = query-rows.first()
120
- details = {"pollutionLevel":row.pollutionLevel), "timestamp":row.timestamp, "operationalState":row.operationalState}
+ details = {"pollutionLevel":row.pollutionLevel, "timestamp":row.timestamp, "operationalState":row.operationalState}
121
return jsonify({"iotDeviceStatus":details})
122
123
@application.route("/1/iotDeviceEvent", methods=["POST"])
0 commit comments