mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-21 11:07:38 +03:00
Avoid duplicate scan messages after SAAScanComplete
This commit is contained in:
parent
a54b0bd04e
commit
b5eb8bc2ce
@ -54,6 +54,10 @@ class DuplicateMessages(Thread):
|
||||
if 'timestamp' in jsonTest['message']:
|
||||
del jsonTest['message']['timestamp']
|
||||
|
||||
# Remove journal timestamp (Avoid duplicate scan messages after SAAScanComplete)
|
||||
if 'ScanType' in jsonTest['message']:
|
||||
del jsonTest['message']['ScanType']
|
||||
|
||||
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