Add gunicorn_config.py

This commit is contained in:
Joshua Askharoun
2021-04-17 16:46:34 -05:00
parent 277cecbead
commit baa3fd78cd
3 changed files with 6 additions and 15 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ from atom.factory import *
from locale import *
locale = getdefaultlocale()[0]
app = Flask(__name__)
musicbrainzngs.set_useragent("Zune", "4.8", "https://github.com/yoshiask/PyZuneCatalogServer")
@@ -121,7 +122,7 @@ def music_album_details(id: str, fragment: str, locale: str):
# Get artist information
@app.route(f"/v3.2/<string:locale>/music/artist/<string:id>/")
def music_get_artist(id: str, locale: str):
return music_get_artist_tracks(id)
return music_get_artist_tracks(id, locale)
# Get artist's tracks