Skip to content
Snippets Groups Projects
Commit 09624e32 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Load scripts in header

parent 37275f84
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,22 @@ from os.path import join
from flask import render_template, send_from_directory
from app import app
app.config['PLOTS_PATH'] = "plots"
PLOTS_PATH = "plots"
PLOTS = [
['dom_activity', 'dom_rates'],
['pmt_rates', 'pmt_hrv'],
['trigger_rates'],
]
@app.route('/')
def index():
return render_template('plots.html')
return render_template('plots.html', plots=PLOTS)
@app.route('/plots/<path:filename>')
def custom_static(filename):
return send_from_directory(join(app.root_path, "../plots"), filename)
return send_from_directory(join(app.root_path, PLOTS_PATH), filename)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment