Co-authored-by: Tristan Hill <t+git@eaux.uk>
pull/477/head
Tristan Hill 3 years ago committed by GitHub
parent 3956b3fd68
commit 489eedf34e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -685,7 +685,7 @@ def changedetection_app(config=None, datastore_o=None):
@app.route("/favicon.ico", methods=['GET']) @app.route("/favicon.ico", methods=['GET'])
def favicon(): def favicon():
return send_from_directory("/app/static/images", filename="favicon.ico") return send_from_directory("static/images", path="favicon.ico")
# We're good but backups are even better! # We're good but backups are even better!
@app.route("/backup", methods=['GET']) @app.route("/backup", methods=['GET'])
@ -747,7 +747,7 @@ def changedetection_app(config=None, datastore_o=None):
def static_content(group, filename): def static_content(group, filename):
# These files should be in our subdirectory # These files should be in our subdirectory
try: try:
return send_from_directory("static/{}".format(group), filename=filename) return send_from_directory("static/{}".format(group), path=filename)
except FileNotFoundError: except FileNotFoundError:
abort(404) abort(404)

@ -1,4 +1,4 @@
flask~= 1.0 flask~= 2.0
eventlet>=0.31.0 eventlet>=0.31.0
validators validators

Loading…
Cancel
Save