Fixes file views and downloads.

This commit is contained in:
Michael Beck
2025-01-31 00:49:57 +01:00
parent 026d6742db
commit 4eaff5a9b1
3 changed files with 54 additions and 15 deletions

1
app.py
View File

@@ -246,7 +246,6 @@ def get_size(path):
elif size < pow(1024,4):
return f"{round(size/(pow(1024,3)), 2)} GB"
@app.route('/data/<path:filename>')
def download_data_file(filename):
return send_from_directory('data', filename)