mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Resized image files no longer go in the pool of possible images
This commit is contained in:
parent
b99cf8b77d
commit
75aa341b9a
@ -89,9 +89,7 @@ def dynamic_image():
|
||||
@webserver.route("/images/<pth:re:.*\\.png>")
|
||||
@webserver.route("/images/<pth:re:.*\\.gif>")
|
||||
def static_image(pth):
|
||||
small_pth = pth.split(".")
|
||||
small_pth.insert(-1,"small")
|
||||
small_pth = ".".join(small_pth)
|
||||
small_pth = pth + "-small"
|
||||
if os.path.exists("images/" + small_pth):
|
||||
response = static_file("images/" + small_pth,root="")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user