From df73c0164babbd029ae2f49fc2ae2adf50efe8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Thu, 11 Mar 2021 20:24:40 +0100 Subject: [PATCH] Fixing problem where the uids have automatically got a random suffix which prevented a correct update detection --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index ef9de97..15a93f8 100644 --- a/main.py +++ b/main.py @@ -84,10 +84,14 @@ def crawl(): if not event.uid in evtIdx.keys(): # Event not known yet uid = event.uid + # Remove random last part of uid + uid = uid[:(uid.rindex('_'))] event.uid = uid + '---0' evtIdx[uid] = 1 else: uid = event.uid + # Remove random last part of uid + uid = uid[:(uid.rindex('_'))] event.uid = uid + '---' + str(evtIdx[uid]) evtIdx[uid] += 1 # Remove timezones