mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-11 10:27:27 +08:00
Fix my rank
- ditto
This commit is contained in:
@@ -122,7 +122,7 @@ class RankList:
|
|||||||
'song_id': self.song.song_id, 'difficulty': self.song.difficulty, 'limit': sql_limit, 'offset': sql_offset})
|
'song_id': self.song.song_id, 'difficulty': self.song.difficulty, 'limit': sql_limit, 'offset': sql_offset})
|
||||||
x = self.c.fetchall()
|
x = self.c.fetchall()
|
||||||
if x:
|
if x:
|
||||||
rank = sql_offset
|
rank = sql_offset if sql_offset > 0 else 0
|
||||||
self.list = []
|
self.list = []
|
||||||
for i in x:
|
for i in x:
|
||||||
rank += 1
|
rank += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user