Skip to content

Commit e9504e6

Browse files
alexiriThiefMaster
andauthored
Update outlook/indico_outlook/plugin.py
Co-authored-by: Adrian <[email protected]>
1 parent b91d020 commit e9504e6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

outlook/indico_outlook/plugin.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,11 @@ def _record_change(self, event, user, action):
377377
if user in event.favorite_of and self._user_tracks_favorite_events(user):
378378
return
379379
for category in reversed(event.category.chain_query.all()):
380-
if user in category.favorite_of \
381-
and self._user_tracks_favorite_categories(user) \
382-
and event.can_access(user):
380+
if (
381+
user in category.favorite_of
382+
and self._user_tracks_favorite_categories(user)
383+
and event.can_access(user)
384+
):
383385
return
384386
# Stop once we reach the visibility horizon of the event
385387
if category is event.category.real_visibility_horizon:

0 commit comments

Comments
 (0)