fix: scorometer muscis folder and populate fix
This commit is contained in:
committed by
Clément Le Bihan
parent
5c7648541f
commit
9fb165e4ff
@@ -48,8 +48,8 @@ def populateFile(path, midi, mxl):
|
||||
print(f"Populating {metadata['Name']}")
|
||||
res = requests.post(f"{url}/song", json={
|
||||
"name": metadata["Name"],
|
||||
"midiPath": f"/assets/musics/{midi}",
|
||||
"musicXmlPath": f"/assets/musics/{mxl}",
|
||||
"midiPath": f"/assets/{midi}",
|
||||
"musicXmlPath": f"/assets/{mxl}",
|
||||
"difficulties": difficulties,
|
||||
"artist": artistId,
|
||||
"album": getOrCreateAlbum(metadata["Album"], artistId),
|
||||
|
||||
2
back/prisma/migrations/20230529160951_dev/migration.sql
Normal file
2
back/prisma/migrations/20230529160951_dev/migration.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Song" ADD COLUMN "illustrationPath" TEXT;
|
||||
@@ -27,7 +27,7 @@ logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
||||
|
||||
|
||||
BACK_URL = os.environ.get("BACK_URL") or "http://back:3000"
|
||||
MUSICS_FOLDER = os.environ.get("MUSICS_FOLDER") or "/musics/"
|
||||
MUSICS_FOLDER = os.environ.get("MUSICS_FOLDER") or "/assets/musics/"
|
||||
|
||||
RATIO = float(sys.argv[2] if len(sys.argv) > 2 else 1)
|
||||
OCTAVE = 5
|
||||
|
||||
Reference in New Issue
Block a user