mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-21 11:07:38 +03:00
Also remove DistanceFromArrivalLS
This commit is contained in:
parent
b5eb8bc2ce
commit
e4c3e61b0f
@ -54,9 +54,11 @@ class DuplicateMessages(Thread):
|
||||
if 'timestamp' in jsonTest['message']:
|
||||
del jsonTest['message']['timestamp']
|
||||
|
||||
# Remove journal timestamp (Avoid duplicate scan messages after SAAScanComplete)
|
||||
# Remove journal ScanType and DistanceFromArrivalLS (Avoid duplicate scan messages after SAAScanComplete)
|
||||
if 'ScanType' in jsonTest['message']:
|
||||
del jsonTest['message']['ScanType']
|
||||
if 'DistanceFromArrivalLS' in jsonTest['message']:
|
||||
del jsonTest['message']['DistanceFromArrivalLS']
|
||||
|
||||
message = simplejson.dumps(jsonTest, sort_keys=True) # Ensure most duplicate messages will get the same key
|
||||
key = hashlib.sha256(message).hexdigest()
|
||||
|
Loading…
x
Reference in New Issue
Block a user