Fixed flag evaluation for notification selection type

This commit is contained in:
Daniel Schick 2025-02-08 13:41:44 +01:00
parent 7f706dfc51
commit 98696aee93

View File

@ -580,7 +580,8 @@ class User:
return hash(id) return hash(id)
def wants_notifications(self, notification_type: NotificationType): 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 @dataclass
class Ship: class Ship: