|
@@ -55,7 +55,7 @@ class SRIConnection(asyncio.Protocol):
|
|
|
data = item.get('args', {})
|
|
|
|
|
|
# --- set VehicleStatus ---
|
|
|
- data[self.connection_id] = 2
|
|
|
+ data[str(self.connection_id)] = 2
|
|
|
update_dict = {'args': data}
|
|
|
Global.mdb.update_one('GlobalVariable', unique_dict, update_dict)
|
|
|
|
|
@@ -505,7 +505,7 @@ class SRIConnection(asyncio.Protocol):
|
|
|
data = item.get('args', {})
|
|
|
|
|
|
# --- set VehicleStatus ---
|
|
|
- data[self.connection_id] = 4
|
|
|
+ data[str(self.connection_id)] = 4
|
|
|
update_dict = {'args': data}
|
|
|
Global.mdb.update_one('GlobalVariable', unique_dict, update_dict)
|
|
|
|