Add checks in dedup for time-less messages
This commit is contained in:
parent
b16b5d690b
commit
812db95995
|
@ -7,6 +7,7 @@ from utils.logging.debug import debug
|
|||
|
||||
def dedup(numName, b):
|
||||
c = deepcopy(b)
|
||||
if "time" in c.keys():
|
||||
del c["time"]
|
||||
c["approxtime"] = str(datetime.utcnow().timestamp())[:main.config["Tweaks"]["DedupPrecision"]]
|
||||
castHash = siphash24(main.hashKey, dumps(c, sort_keys=True).encode("utf-8"))
|
||||
|
|
Loading…
Reference in New Issue