Reduced weekday count by one
This commit is contained in:
parent
08ff2cfc16
commit
f07456a95b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user