mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-24 04:48:05 +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)]
|
counts = [0 for _ in range(7)]
|
||||||
curr = start
|
curr = start
|
||||||
while curr <= end:
|
while curr <= end:
|
||||||
counts[(1 + curr.weekday()) % 7] += 1
|
counts[curr.weekday()] += 1
|
||||||
curr += dt.timedelta(1)
|
curr += dt.timedelta(1)
|
||||||
return counts
|
return counts
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user