Fixed flag evaluation for notification selection type

This commit is contained in:
Daniel Schick 2025-02-08 13:41:44 +01:00
parent d879d8cc5c
commit ec925c1eb6

View File

@ -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: