Skip to content

Commit

Permalink
Fix capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Dec 10, 2024
1 parent 40b939e commit 2d80ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outlook/indico_outlook/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _get_status(user, event, settings):
status = OutlookPlugin.user_settings.get(user, 'status', settings['status'])
for override in OutlookPlugin.user_settings.get(user, 'overrides'):
if override['type'] == 'category' and override['id'] == event.category_id:
# we don't keep going for a specific category Id match
# we don't keep going for a specific category id match
return override['status']
elif override['type'] == 'category_tree' and override['id'] in event.category_chain:
# for category tree matches we keep going in case there's a specific match later.
Expand All @@ -85,7 +85,7 @@ def _get_reminder(user, event, settings):
reminder_minutes = OutlookPlugin.user_settings.get(user, 'reminder_minutes', settings['reminder_minutes'])
for override in OutlookPlugin.user_settings.get(user, 'overrides'):
if override['type'] == 'category' and override['id'] == event.category_id:
# we don't keep going for a specific category Id match
# we don't keep going for a specific category id match
return override.get('reminder', reminder), override.get('reminder_minutes', reminder_minutes)
elif override['type'] == 'category_tree' and override['id'] in event.category_chain:
# for category tree matches we keep going in case there's a specific match later.
Expand Down

0 comments on commit 2d80ecd

Please sign in to comment.