Reduced weekday count by one

This commit is contained in:
Verox001 2024-02-20 10:01:08 +01:00
parent 08ff2cfc16
commit f07456a95b

View File

@ -61,8 +61,8 @@ class User(UserMixin):
# Returns all heatmap-values from the last 28 days # Returns all heatmap-values from the last 28 days
def get_heatmap(self) -> list: def get_heatmap(self) -> list:
# get current day of week as integer. monday is 1 and sunday is 7 # get current day of week as integer. monday is 0 and sunday is 6
weekday = datetime.today().weekday() + 1 weekday = datetime.today().weekday()
heatmap = [] heatmap = []
# append the heatmap values of the current week # append the heatmap values of the current week