mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-23 20:38:13 +00:00
Updated Weekday counts
This commit is contained in:
parent
dbc467b39c
commit
40ee74cccd
@ -14,7 +14,7 @@ def dow_count(start, end):
|
||||
counts = [0 for _ in range(7)]
|
||||
curr = start
|
||||
while curr <= end:
|
||||
counts[(1 + curr.weekday()) % 7] += 1
|
||||
counts[curr.weekday()] += 1
|
||||
curr += dt.timedelta(1)
|
||||
return counts
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user