add: data
This commit is contained in:
4
main.py
4
main.py
@ -43,7 +43,9 @@ def record():
|
||||
@app.route("/", methods = ['GET'])
|
||||
def normal():
|
||||
return render_template('home.html', longer = record(), 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__':
|
||||
app.run(host='0.0.0.0', port=5000, debug=1)
|
||||
|
Reference in New Issue
Block a user