From 40ee74cccdf2b6e22ff1242bd9445c17fea92afe Mon Sep 17 00:00:00 2001 From: Nile Walker Date: Wed, 20 Jan 2021 18:54:25 -0500 Subject: [PATCH] Updated Weekday counts --- communicator/services/graph_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communicator/services/graph_service.py b/communicator/services/graph_service.py index 833286d..c98d005 100644 --- a/communicator/services/graph_service.py +++ b/communicator/services/graph_service.py @@ -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