slight cleanup

This commit is contained in:
2023-08-20 20:12:32 +03:00
parent 80bce10987
commit e92ab0cdbf
2 changed files with 1 additions and 2 deletions

View File

@@ -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)