add: data

This commit is contained in:
2025-09-08 08:24:49 +02:00
parent 66ded84720
commit f5f04ec782
2 changed files with 118 additions and 1 deletions

View File

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