From fc2b37d461d6a11b5c767aef7d9c2e88ccb3ade1 Mon Sep 17 00:00:00 2001 From: Tony White Date: Thu, 25 Jan 2024 12:51:17 -1000 Subject: [PATCH] fix path to download logs via button --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 38914e0..4f0974f 100644 --- a/app/main.py +++ b/app/main.py @@ -101,7 +101,7 @@ def servicenames(): @app.route('/download') def download_file(): - return send_file('sensordata.csv', as_attachment=True, cache_timeout=0) + return send_file(log_file, as_attachment=True, cache_timeout=0) @app.route('/data') def get_data():