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)
|
||||
|
||||
Reference in New Issue
Block a user