Integrate nav

- other minor refactors
This commit is contained in:
geoffrey45
2022-04-14 11:30:19 +03:00
parent 90d646d674
commit 85c59b4cba
28 changed files with 266 additions and 141 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def send_track_file(trackid):
file["filepath"] for file in api.PRE_TRACKS
if file["_id"]["$oid"] == trackid
][0]
except (FileNotFoundError, IndexError):
except (FileNotFoundError, IndexError) as e:
return "File not found", 404
return send_file(filepath, mimetype="audio/mp3")