return current month with no data for cumulative budget report
This commit is contained in:
parent
634ca1c76d
commit
90674b2e62
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user