new subpage for daily diagram

master
ademant 2019-08-20 05:28:57 +02:00
parent b807c5240e
commit a8b25468fe
1 changed files with 4 additions and 4 deletions

View File

@ -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)