mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-13 03:27:26 +08:00
Fix two small bugs
- Fix a bug that something of the finale challenge cannot be unlocked - Fix a bug that the users' items will not be zero, which will disturb some purchase operations
This commit is contained in:
@@ -51,7 +51,7 @@ class UserItem(Item):
|
||||
(self.user.user_id, self.item_id, self.item_type))
|
||||
x = self.c.fetchone()
|
||||
if x:
|
||||
self.amount = x[0] if x[0] else 1
|
||||
self.amount = x[0] if x[0] is not None else 1
|
||||
else:
|
||||
self.amount = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user