From 90674b2e620c5b815b8ca02d292ea0243e608d75 Mon Sep 17 00:00:00 2001 From: dandds Date: Tue, 25 Sep 2018 09:00:20 -0400 Subject: [PATCH] return current month with no data for cumulative budget report --- atst/domain/reports.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atst/domain/reports.py b/atst/domain/reports.py index 15a00812..23f3860c 100644 --- a/atst/domain/reports.py +++ b/atst/domain/reports.py @@ -1,3 +1,4 @@ +from datetime import datetime from itertools import groupby @@ -236,6 +237,7 @@ class Reports: if workspace.name in REPORT_FIXTURE_MAP: months = REPORT_FIXTURE_MAP[workspace.name]["cumulative"] else: - months = {} + this_month = datetime.today().strftime("%m/%Y") + months = {this_month: {"spend": 0, "cumulative": 0}} return {"months": months}