1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed more bugs

This commit is contained in:
Krateng 2020-09-04 15:33:16 +02:00
parent 5cf7ca2e9b
commit e8c316f199
No known key found for this signature in database
GPG Key ID: 46735607861C6FCE
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ author = {
"email":"maloja@krateng.dev", "email":"maloja@krateng.dev",
"github": "krateng" "github": "krateng"
} }
version = 2,9,2 version = 2,9,3
versionstr = ".".join(str(n) for n in version) versionstr = ".".join(str(n) for n in version)
links = { links = {
"pypi":"malojaserver", "pypi":"malojaserver",

View File

@ -17,7 +17,7 @@ def uri_to_internal(keys,forceTrack=False,forceArtist=False):
filterkeys = {"track":{"artists":keys.getall("artist"),"title":keys.get("title")}} filterkeys = {"track":{"artists":keys.getall("artist"),"title":keys.get("title")}}
elif "artist" in keys and not forceTrack: elif "artist" in keys and not forceTrack:
filterkeys = {"artist":keys.get("artist")} filterkeys = {"artist":keys.get("artist")}
if "associated" in keys: resultkeys1["associated"] = True if "associated" in keys: filterkeys["associated"] = True
else: else:
filterkeys = {} filterkeys = {}

View File

@ -63,7 +63,7 @@ init_apis(webserver)
@webserver.get("/api/s/<pth:path>") @webserver.get("/api/s/<pth:path>")
@webserver.post("/api/s/<pth:path>") @webserver.post("/api/s/<pth:path>")
def deprecated_api_s(pth): def deprecated_api_s(pth):
redirect("/apis/" + pth + "?" + compose_querystring(request.query)) redirect("/apis/" + pth + "?" + request.query_string)
@webserver.get("/api/<pth:path>") @webserver.get("/api/<pth:path>")
@webserver.post("/api/<pth:path>") @webserver.post("/api/<pth:path>")