mirror of
https://github.com/FAUSheppy/python-flask-picture-factory
synced 2025-12-06 07:01:37 +01:00
fix: correct directory for svg
This commit is contained in:
@@ -104,7 +104,7 @@ def sendPicture(path):
|
||||
|
||||
pathDebug = path
|
||||
if path.endswith(".svg"):
|
||||
return flask.send_from_directory(".", path)
|
||||
return flask.send_from_directory(PICTURE_DIR, path)
|
||||
|
||||
encoding = flask.request.args.get("encoding")
|
||||
path, cacheHit = generatePicture(path, scaleX, scaleY, encoding,
|
||||
|
||||
Reference in New Issue
Block a user