Skip to content

Commit

Permalink
more than two event ids
Browse files Browse the repository at this point in the history
  • Loading branch information
margau committed May 31, 2024
1 parent 175b754 commit e175ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedule_gpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit e175ec3

Please sign in to comment.