-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
82 lines (62 loc) · 1.53 KB
/
app.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from flask import Flask
from flask import render_template
from analysis import Analyzer
app = Flask(__name__)
analyzer = Analyzer()
@app.route("/")
def hello():
return render_template("index.html")
@app.route("/confirmados")
def confirmados():
return analyzer.confirmados
@app.route("/obitos")
def obitos():
return analyzer.obitos
@app.route("/tx_obitos")
def tx_obitos():
return analyzer.tx_obitos
@app.route("/recuperados")
def recuperados():
return analyzer.recuperados
@app.route("/tx_recuperados")
def tx_recuperados():
return analyzer.tx_recuperados
@app.route("/isolamento")
def isolamento():
return analyzer.isolamento
@app.route("/tx_isolamento")
def tx_isolamento():
return analyzer.tx_isolamento
@app.route("/enfermaria")
def enfermaria():
return analyzer.enfermaria
@app.route("/leitos_enf")
def leitos_enf():
return analyzer.leitos_enf
@app.route("/tx_oc_enf")
def tx_oc_enf():
return analyzer.tx_oc_enf
@app.route("/tx_enfermaria")
def tx_enfermaria():
return analyzer.tx_enfermaria
@app.route("/uti")
def uti():
return analyzer.uti
@app.route("/leitos_uti")
def leitos_uti():
return analyzer.leitos_uti
@app.route("/tx_uti")
def tx_uti():
return analyzer.tx_uti
@app.route("/tx_oc_uti")
def tx_oc_uti():
return analyzer.tx_oc_uti
@app.route("/testes_novos")
def testes_novos():
return analyzer.testes_novos
@app.route("/testes_acumulados")
def testes_acumulados():
return analyzer.testes_acumulados
@app.route("/tx_testes")
def tx_testes():
return analyzer.tx_testes