return current month with no data for cumulative budget report

This commit is contained in:
dandds 2018-09-25 09:00:20 -04:00
parent 634ca1c76d
commit 90674b2e62

View File

@ -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}