From e175ec306825528f7a8d59d904adc39d0092068a Mon Sep 17 00:00:00 2001 From: Marvin Gaube Date: Fri, 31 May 2024 13:23:34 +0200 Subject: [PATCH] more than two event ids --- schedule_gpn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule_gpn.py b/schedule_gpn.py index fef7b99..a175ef3 100755 --- a/schedule_gpn.py +++ b/schedule_gpn.py @@ -85,7 +85,7 @@ def cleanup_event(event): # slug should replace gpn21-lounge with gpn21_lounge event['slug'] = event.get('slug').replace('gpn21-lounge', 'gpn21_lounge') # handle duplicate ids - if event.get('id') in present_ids: + while event.get('id') in present_ids: event['id'] = event.get('id') + 5000 print("id duplicate, new id: " + str(event.get('id'))) present_ids.append(event.get('id'))