Ver Fonte

sensorId->sensor_id

locky há 3 anos atrás
pai
commit
a1e6d7b698
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      SensorGateway/SensorGatewayController.py

+ 2 - 2
SensorGateway/SensorGatewayController.py

@@ -54,8 +54,8 @@ class SensorGateway(View):
             if not CommonService.check_time_stamp_token(time_stamp_token, time_stamp):
                 return response.json(13)
 
-            sensorId = ''.join(random.sample(string.ascii_letters + string.digits, 6))
-            return response.json(0, {'sensorId': sensorId})
+            sensor_id = ''.join(random.sample(string.ascii_letters + string.digits, 6))
+            return response.json(0, {'sensor_id': sensor_id})
         except Exception as e:
             return response.json(500, repr(e))