sif: Move live notes data to its directory
Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
+2
-2
@@ -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), ¬es)
|
||||
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), ¬es)
|
||||
CheckErr(err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user