slight cleanup
This commit is contained in:
@@ -210,7 +210,7 @@ def download_file(token, name):
|
||||
"""
|
||||
check for file expiry, and send file if allowed
|
||||
"""
|
||||
full_path = os.path.join(app.config["DATAFOLDER"], token, name)
|
||||
full_path = file_full_path(token, name)
|
||||
if not os.path.exists(full_path):
|
||||
return "Error", 404
|
||||
db_stat = db_get_file(token, name)
|
||||
|
||||
@@ -4,7 +4,6 @@ SQLITE=sqlite3
|
||||
|
||||
export FLASK_DATAFOLDER="/data"
|
||||
export FLASK_DB="/data/flees.db"
|
||||
export FLASK_CONF="/data/config.json"
|
||||
export SERVER=gunicorn
|
||||
export PID="flees.pid"
|
||||
export WORKERS
|
||||
|
||||
Reference in New Issue
Block a user