1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-29 22:59:45 +03:00

Don't send "ActiveFine" with EDDN Docked messages

This commit is contained in:
Jonathan Harris 2018-11-04 13:10:25 +00:00
parent 03c1ad5acb
commit e93265c87a

View File

@ -666,7 +666,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', 'Wanted']:
for thing in ['ActiveFine', 'CockpitBreach', 'BoostUsed', 'FuelLevel', 'FuelUsed', 'JumpDist', 'Latitude', 'Longitude', 'Wanted']:
entry.pop(thing, None)
for faction in entry.get('Factions', []):
faction.pop('MyReputation', None)