[Bug Fix][Enhance] Endless loop & waitress log

- Fix a bug due to 6fcca17918 that there is a endless loop in calculating recent 10 updating

- Add info log for `waitress`
This commit is contained in:
Lost-MSth
2022-11-05 21:17:44 +08:00
parent 78d28f8886
commit 4a5083c597
5 changed files with 20 additions and 12 deletions

View File

@@ -629,9 +629,9 @@ class UserInfo(User):
def update_global_rank(self) -> None:
'''用户世界排名计算,有新增成绩则要更新'''
with Connect() as c2:
c2.execute('''select song_id, rating_ftr, rating_byn from chart''')
x = c2.fetchall()
self.c.execute('''select song_id, rating_ftr, rating_byn from chart''')
x = self.c.fetchall()
song_list_ftr = [self.user_id]
song_list_byn = [self.user_id]