Commit 8de2d380 authored by Fence's avatar Fence 🌈

more fixes

parent 2d651a23
......@@ -14,8 +14,8 @@ class App(object):
ApiController(self).register(self._flask)
MusicController(self._flask.config["UPLOAD_DIR"]).register(self._flask)
def run(self):
self._flask.run()
def run(self, host="127.0.0.1", port=5000):
self._flask.run(host=host, port=port)
def get_application(self):
return self._flask
......@@ -74,7 +74,7 @@ class MusicController(FlaskController):
year=json["year"]).save()
if "genre" in json:
song.genre = json["json"]
song.genre = json["genre"]
song.save()
song.reload()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment