22 lines
477 B
Python
22 lines
477 B
Python
from flask import Flask, render_template
|
|
app = Flask("Project Numeri")
|
|
from plots import Cijferlijst
|
|
import base64
|
|
cf = Cijferlijst()
|
|
import matplotlib.pyplot as plt
|
|
|
|
@app.route('/')
|
|
def index():
|
|
|
|
data = cf.GetSubjectByYear("godsdienst", "2010/2011")
|
|
x = data['Datum invoer(Voortgangsdossier)']
|
|
y = data['Cijfer(Voortgangsdossier)']
|
|
plt.plot(x,y)
|
|
|
|
return render_template('index.html', title="joe", imgdata=None)
|
|
|
|
def RunWeb():
|
|
app.run(debug=True)
|
|
|
|
|