new subpage for daily diagram
parent
b807c5240e
commit
a8b25468fe
8
pyweb.py
8
pyweb.py
|
@ -299,10 +299,6 @@ def show_ids():
|
|||
def show_svg(svgfile):
|
||||
return static_file("svg/"+svgfile,root=abspath)
|
||||
|
||||
@app.get('/graph/<mid>')
|
||||
def show_graph_short(mid):
|
||||
show_graph(mid,'hourly')
|
||||
|
||||
@app.get('/graph/<mid>/<kind>')
|
||||
def show_graph(mid,kind):
|
||||
sqltable="hourly_measures"
|
||||
|
@ -335,6 +331,10 @@ def show_graph(mid,kind):
|
|||
</body></html>
|
||||
'''
|
||||
|
||||
@app.get('/graph/<mid>')
|
||||
def show_graph_short(mid):
|
||||
show_graph(mid,'hourly')
|
||||
|
||||
@app.post('/data/<hash_id>')
|
||||
def dataimport(hash_id):
|
||||
# print(hash_id)
|
||||
|
|
Loading…
Reference in New Issue