mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-21 11:07:38 +03:00
Update DuplicateMessages.py
This commit is contained in:
parent
6d670a27ee
commit
e5123b99b5
@ -62,7 +62,7 @@ class DuplicateMessages(Thread):
|
||||
|
||||
# Prevent Docked event with small difference in distance from start
|
||||
if message['message']['DistFromStarLS']:
|
||||
message['message']['DistFromStarLS'] = int(message['message']['DistFromStarLS'])
|
||||
message['message']['DistFromStarLS'] = round(message['message']['DistFromStarLS'])
|
||||
|
||||
message = simplejson.dumps(message, 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