sif: Move live notes data to its directory

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-06-07 07:02:11 +08:00
parent affc960a95
commit d191be6137
1744 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ func PlayLive(ctx *gin.Context) {
notes := []model.NotesList{}
// fmt.Println("./assets/notes/" + notes_setting_asset)
notes_list := utils.ReadAllText("./assets/notes/" + notes_setting_asset)
notes_list := utils.ReadAllText("./assets/sif/notes/" + notes_setting_asset)
err = json.Unmarshal([]byte(notes_list), &notes)
CheckErr(err)
@@ -466,7 +466,7 @@ func PlayScore(ctx *gin.Context) {
notes := []model.NotesList{}
// fmt.Println("./assets/notes/" + notes_setting_asset)
notes_list := utils.ReadAllText("./assets/notes/" + notes_setting_asset)
notes_list := utils.ReadAllText("./assets/sif/notes/" + notes_setting_asset)
err = json.Unmarshal([]byte(notes_list), &notes)
CheckErr(err)