1
0
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:
Krateng 2019-05-13 18:35:41 +02:00
parent b99cf8b77d
commit 75aa341b9a

View File

@ -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: