forked from Dylan987/windatachallenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
33 lines (25 loc) · 698 Bytes
/
Copy pathapp.py
File metadata and controls
33 lines (25 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from flask import Flask
from flask import render_template
from flask import request
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#import graphs_test
from day_aggregate import plot_any
app = Flask(__name__)
@app.route('/')
def index():
return render_template("site.html")
@app.route('/update_graph')
def update():
data = request.args
plot_any(data['intersection'], data['direction'], data['traffic'])
return "it worked"
@app.route('/analysis.html')
def analysis():
return render_template("analysis.html")
@app.route('/dashboard.html')
def hello_world():
return render_template("site.html")
if __name__ == '__main__':
app.run(debug=True)