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:.*\\.png>")
|
||||||
@webserver.route("/images/<pth:re:.*\\.gif>")
|
@webserver.route("/images/<pth:re:.*\\.gif>")
|
||||||
def static_image(pth):
|
def static_image(pth):
|
||||||
small_pth = pth.split(".")
|
small_pth = pth + "-small"
|
||||||
small_pth.insert(-1,"small")
|
|
||||||
small_pth = ".".join(small_pth)
|
|
||||||
if os.path.exists("images/" + small_pth):
|
if os.path.exists("images/" + small_pth):
|
||||||
response = static_file("images/" + small_pth,root="")
|
response = static_file("images/" + small_pth,root="")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user