From 4bc17623bb63680da10ea7e8d073da7de31df5c3 Mon Sep 17 00:00:00 2001 From: nikolaswollenberg Date: Fri, 26 Jan 2024 08:27:44 +0100 Subject: [PATCH] Wir haben Habits udn Checkboxen fried chicken --- app.py | 5 +++++ templates/index.html | 29 ++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 586880c..a5b4243 100644 --- a/app.py +++ b/app.py @@ -219,6 +219,11 @@ def habit_create(): errors=errors, )""" +@app.route('/check', methods=['POST']) +@login_required +def check_habit(): + habit = request.get_json()["habitId"] + return {} # Run the application if __name__ == '__main__': diff --git a/templates/index.html b/templates/index.html index 75b9c47..793b3c2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -85,7 +85,7 @@ {% for habit in habits %}
  • - +
    @@ -101,6 +101,33 @@ {% endfor %}
    + {% endblock %} \ No newline at end of file