From e3ea8d7b1794f9145479c1145928f7996d131bdb Mon Sep 17 00:00:00 2001 From: Yapollon Date: Thu, 7 Mar 2024 15:07:26 +0100 Subject: [PATCH 1/3] Update get_heatmap --- models/User.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/User.py b/models/User.py index debfdcf..38d2bfe 100644 --- a/models/User.py +++ b/models/User.py @@ -65,7 +65,7 @@ class User(UserMixin): def get_heatmap(self) -> list: # get current day of week as integer. monday is 0 and sunday is 6 weekday = datetime.today().weekday() - heatmap = [] + heatmap = [100] # append the heatmap values of the current week for day in range(0, weekday): From ca9168cff44bc1836f38e6f30d09548270c0b588 Mon Sep 17 00:00:00 2001 From: Yapollon Date: Thu, 7 Mar 2024 15:48:39 +0100 Subject: [PATCH 2/3] better design --- templates/components/habit_lists.html | 17 ++++++++--------- templates/users.html | 4 +++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/templates/components/habit_lists.html b/templates/components/habit_lists.html index 867d2df..856dd62 100644 --- a/templates/components/habit_lists.html +++ b/templates/components/habit_lists.html @@ -92,7 +92,7 @@ {% for user in habit_list.get_users() %} {% if current_user.id != user.id %} + title="{{user.name}}" alt=""/> {% endif %} {% endfor %} @@ -101,12 +101,11 @@ {% else %}
@@ -131,9 +130,9 @@
+ + id="{{ habit.id }}" onclick="sendPostRequest('{{ habit.id }}')">
@@ -189,13 +188,13 @@