mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-05 06:17:57 +08:00
[Bug fix] Update error & About bundle download
- Data for Arcaea 5.8.0 - Fix a bug that the server's database updates from an old version may meet a challenge if `recent30` table has some strange data. - Fix the issue where the bundle downloading memory cache does not clean up. - Add a config term to only change the X-Accel-Redirect prefix for bundle downloading.
This commit is contained in:
@@ -450,10 +450,11 @@ class DatabaseMigrator:
|
||||
for j in range(30):
|
||||
rating = i[1 + j * 2]
|
||||
rating = float(rating) if rating else 0
|
||||
song_id_difficulty = i[2 + j * 2]
|
||||
song_id_difficulty: str = i[2 + j * 2]
|
||||
if song_id_difficulty:
|
||||
song_id = song_id_difficulty[:-1]
|
||||
difficulty = int(song_id_difficulty[-1])
|
||||
difficulty = song_id_difficulty[-1]
|
||||
difficulty = int(difficulty) if difficulty.isdigit() else 0
|
||||
else:
|
||||
song_id = ''
|
||||
difficulty = 0
|
||||
|
||||
Reference in New Issue
Block a user