Compare commits
1 Commits
f5f04ec782
...
ae0dc87e8b
Author | SHA1 | Date | |
---|---|---|---|
ae0dc87e8b |
3
main.py
3
main.py
@ -28,6 +28,9 @@ def update():
|
|||||||
def normal():
|
def normal():
|
||||||
print(values.split(" "))
|
print(values.split(" "))
|
||||||
return render_template('home.html', dates = wrap(values, 10), total = len(values.split(' ')), days = (datetime.datetime.today().date() - datetime.datetime.strptime(values.split(' ')[-1], "%Y-%m-%d").date()).days)
|
return render_template('home.html', dates = wrap(values, 10), total = len(values.split(' ')), days = (datetime.datetime.today().date() - datetime.datetime.strptime(values.split(' ')[-1], "%Y-%m-%d").date()).days)
|
||||||
|
@app.route('/data', methods = ['GET'])
|
||||||
|
def data():
|
||||||
|
return render_template('data.html')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
1
templates/data.html
Normal file
1
templates/data.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h1>zzz</h1>
|
Reference in New Issue
Block a user