@@ -291,32 +291,32 @@ async def process_export_file(self, path: str):
291291 if client ['Name' ] == '---' :
292292 continue
293293 target = set (int (x ['freq' ]) for x in client ['RadioInfo' ]['radios' ] if int (x ['freq' ]) > 1E6 )
294- if client ['Name ' ] not in self .clients :
295- self .clients [client ['Name ' ]] = target
294+ if client ['ClientGuid ' ] not in self .clients :
295+ self .clients [client ['ClientGuid ' ]] = target
296296 await self .bus .send_to_node ({
297297 "command" : "onSRSConnect" ,
298298 "server_name" : self .server .name ,
299299 "player_name" : client ['Name' ],
300300 "side" : client ['Coalition' ],
301301 "unit" : client ['RadioInfo' ]['unit' ],
302302 "unit_id" : client ['RadioInfo' ]['unitId' ],
303- "radios" : list (self .clients [client ['Name ' ]])
303+ "radios" : list (self .clients [client ['ClientGuid ' ]])
304304 })
305305 else :
306- actual = self .clients [client ['Name ' ]]
306+ actual = self .clients [client ['ClientGuid ' ]]
307307 if actual != target :
308- self .clients [client ['Name ' ]] = target
308+ self .clients [client ['ClientGuid ' ]] = target
309309 await self .bus .send_to_node ({
310310 "command" : "onSRSUpdate" ,
311311 "server_name" : self .server .name ,
312312 "player_name" : client ['Name' ],
313313 "side" : client ['Coalition' ],
314314 "unit" : client ['RadioInfo' ]['unit' ],
315315 "unit_id" : client ['RadioInfo' ]['unitId' ],
316- "radios" : list (self .clients [client ['Name ' ]])
316+ "radios" : list (self .clients [client ['ClientGuid ' ]])
317317 })
318318 all_clients = set (self .clients .keys ())
319- active_clients = set ([x ['Name ' ] for x in data ['Clients' ]])
319+ active_clients = set ([x ['ClientGuid ' ] for x in data ['Clients' ]])
320320 # any clients disconnected?
321321 for client in all_clients - active_clients :
322322 await self .bus .send_to_node ({
0 commit comments