[Enhance][Bug Fix]

- For Arcaea 5.10.4
- Add support for the Link Play notification setting.
- Fix a bug that public rooms cannot be matched possibly if some players leave the room.
- Continue to fix the bug that the player cannot complete one course twice.
- Continue to fix the bug that users cannot change online settings.
This commit is contained in:
Lost-MSth
2024-09-27 00:28:56 +08:00
parent c52fda6f47
commit dc1ca344e5
10 changed files with 49 additions and 33 deletions

View File

@@ -26,6 +26,10 @@ class BaseNotification:
raise NotImplementedError()
def insert(self):
self.receiver.select_user_one_column('mp_notification_enabled', True, bool)
if not self.receiver.mp_notification_enabled:
return
self.c_m.execute(
'''select max(id) from notification where user_id = ?''', (self.receiver.user_id,))
x = self.c_m.fetchone()