diff --git a/maloja/__pkginfo__.py b/maloja/__pkginfo__.py index e5bcfc8..feb174d 100644 --- a/maloja/__pkginfo__.py +++ b/maloja/__pkginfo__.py @@ -5,7 +5,7 @@ author = { "email":"maloja@krateng.dev", "github": "krateng" } -version = 2,7,1 +version = 2,7,2 versionstr = ".".join(str(n) for n in version) links = { "pypi":"malojaserver", diff --git a/maloja/server.py b/maloja/server.py index 58608d4..6e8684d 100755 --- a/maloja/server.py +++ b/maloja/server.py @@ -180,7 +180,9 @@ def static(name,ext): aliases = { "admin": "admin_overview", - "manual": "admin_manual" + "manual": "admin_manual", + "setup": "admin_setup", + "issues": "admin_issues" } diff --git a/maloja/static/txt/robots.txt b/maloja/static/txt/robots.txt index d346249..5023f2b 100644 --- a/maloja/static/txt/robots.txt +++ b/maloja/static/txt/robots.txt @@ -1,2 +1,4 @@ User-agent: * Disallow: /api/ +Disallow: /pulse/ +Disallow: /performance/ diff --git a/maloja/utilities.py b/maloja/utilities.py index 3be8b94..8c7e4ed 100644 --- a/maloja/utilities.py +++ b/maloja/utilities.py @@ -407,9 +407,10 @@ def resolveImage(artist=None,track=None): def set_image(b64,**keys): track = "title" in keys + log("Trying to set image, b64 string: " + str(b64[:30] + "..."),module="debug") + regex = r"data:image/(\w+);base64,(.+)" type,b64 = re.fullmatch(regex,b64).groups() - print(b64[:40]) b64 = base64.b64decode(b64) filename = "webupload" + str(int(datetime.datetime.now().timestamp())) + "." + type for folder in get_all_possible_filenames(**keys):