🤬
  • Heroku tweaks (backup download) (#356)

    * use absolute path, just incase the data-dir is set relative
  • Loading...
  • dgtlmoon committed with GitHub 3 years ago
    febb2bbf
    1 parent 59d31bf7
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    changedetectionio/__init__.py
    skipped 803 lines
    804 804   compress_type=zipfile.ZIP_DEFLATED,
    805 805   compresslevel=8)
    806 806   
    807  - return send_from_directory(datastore_o.datastore_path, backupname, as_attachment=True)
     807 + # Send_from_directory needs to be the full absolute path
     808 + return send_from_directory(os.path.abspath(datastore_o.datastore_path), backupname, as_attachment=True)
    808 809   
    809 810   @app.route("/static/<string:group>/<string:filename>", methods=['GET'])
    810 811   def static_content(group, filename):
    skipped 192 lines
Please wait...
Page is in error, reload to recover