1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

Strip "Wanted" field from EDDN messages

This commit is contained in:
Jonathan Harris 2018-03-09 14:19:35 +00:00
parent a157478f03
commit 239c7872f5

View File

@ -659,7 +659,7 @@ class AppWindow:
entry['event'] == 'Docked' or
entry['event'] == 'Scan' and monitor.system and monitor.coordinates)):
# strip out properties disallowed by the schema
for thing in ['CockpitBreach', 'BoostUsed', 'FuelLevel', 'FuelUsed', 'JumpDist', 'Latitude', 'Longitude']:
for thing in ['CockpitBreach', 'BoostUsed', 'FuelLevel', 'FuelUsed', 'JumpDist', 'Latitude', 'Longitude', 'Wanted']:
entry.pop(thing, None)
for thing in entry.keys():
if thing.endswith('_Localised'):