diff --git a/src/server/BreCal/schemas/model.py b/src/server/BreCal/schemas/model.py index 2296968..4ace3ae 100644 --- a/src/server/BreCal/schemas/model.py +++ b/src/server/BreCal/schemas/model.py @@ -580,7 +580,8 @@ class User: return hash(id) def wants_notifications(self, notification_type: NotificationType): - return notification_type in self.notify_event + events = bitflag_to_list(self.notify_event) + return notification_type in events @dataclass class Ship: