Skip to content

Commit

Permalink
fix path to download logs via button
Browse files Browse the repository at this point in the history
  • Loading branch information
tdubsFO committed Jan 25, 2024
1 parent 0f54687 commit fc2b37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit fc2b37d

Please sign in to comment.