mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Aliases, debug info and robots
This commit is contained in:
parent
0127a25ce5
commit
4113d1761e
@ -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",
|
||||
|
@ -180,7 +180,9 @@ def static(name,ext):
|
||||
|
||||
aliases = {
|
||||
"admin": "admin_overview",
|
||||
"manual": "admin_manual"
|
||||
"manual": "admin_manual",
|
||||
"setup": "admin_setup",
|
||||
"issues": "admin_issues"
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,2 +1,4 @@
|
||||
User-agent: *
|
||||
Disallow: /api/
|
||||
Disallow: /pulse/
|
||||
Disallow: /performance/
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user