mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-16 21:47:26 +08:00
Fix a bug
This commit is contained in:
@@ -297,6 +297,7 @@ def update_recent30(c, user_id, song_id, rating, is_protected):
|
||||
b_pre = [x for x in b]
|
||||
s_pre = 0
|
||||
for x in a_pre:
|
||||
if x is not None:
|
||||
s_pre += x
|
||||
|
||||
for i in range(r30_id, 0, -1):
|
||||
@@ -308,6 +309,7 @@ def update_recent30(c, user_id, song_id, rating, is_protected):
|
||||
if is_protected:
|
||||
s = 0
|
||||
for x in a:
|
||||
if x is not None:
|
||||
s += x
|
||||
if s < s_pre:
|
||||
a = [x for x in a_pre]
|
||||
|
||||
Reference in New Issue
Block a user