mirror of
https://github.com/FAUSheppy/python-flask-picture-factory
synced 2025-12-05 22:51:36 +01:00
fix: picture ending detection
This commit is contained in:
@@ -142,7 +142,7 @@ def list():
|
||||
|
||||
isPictureDict = dict()
|
||||
for p in retStringArr:
|
||||
isPicture = any([x in p for x in ["jpg", "png", "wep", "svg"]])
|
||||
isPicture = any([x in p.lower() for x in ["jpg", "png", "wep", "svg", "gif", "jpeg"]])
|
||||
isPictureDict.update({ p : isPicture })
|
||||
|
||||
return flask.render_template("index.html", paths=retStringArr, isPictureDict=isPictureDict)
|
||||
|
||||
Reference in New Issue
Block a user