Update to v2.2

close #13
This commit is contained in:
Lost-MSth
2021-02-11 15:26:58 +08:00
parent a890a9af4a
commit df181f104e
8 changed files with 38 additions and 20 deletions

View File

@@ -130,8 +130,6 @@ def arc_score_me(user_id, song_id, difficulty, limit=20):
x = c.fetchone()
myrank = int(x[0]) + 1
if myrank <= 4: # 排名在前4
conn.commit()
conn.close()
return arc_score_top(song_id, difficulty, limit)
elif myrank >= 5 and myrank <= 9999 - limit + 4: # 万名内前面有4个人
c.execute('''select user_id from best_score where song_id = :song_id and difficulty = :difficulty order by score DESC, time_played DESC limit :limit offset :offset''', {