fix: scorometer musics folder

This commit is contained in:
GitBluub
2023-05-30 00:50:57 +09:00
committed by Clément Le Bihan
parent 17955a0525
commit 7b5629f4a4

View File

@@ -329,7 +329,7 @@ def handleStartMessage(start_message: StartMessage):
r = requests.get(f"{BACK_URL}/song/{song_id}")
r.raise_for_status()
song_path = r.json()["midiPath"]
song_path = song_path.replace("/musics/", MUSICS_FOLDER)
song_path = song_path.replace("/assets/musics/", MUSICS_FOLDER)
except Exception as e:
logging.fatal("Invalid song id", exc_info=e)
send({"error": "Invalid song id, song does not exist"})