mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-09 01:07:27 +08:00
Fix a big bug
- Fix a bug that the server gets all items as one user's item
This commit is contained in:
@@ -373,8 +373,8 @@ class UserItemList:
|
||||
self.c.execute(
|
||||
'''select item_id from item where type=?''', (item_type,))
|
||||
else:
|
||||
self.c.execute('''select item_id, amount from user_item where type = :a''', {
|
||||
'a': item_type})
|
||||
self.c.execute('''select item_id, amount from user_item where type = :a and user_id = :b''', {
|
||||
'a': item_type, 'b': self.user.user_id})
|
||||
x = self.c.fetchall()
|
||||
if not x:
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user