Default to current month for reporting
This commit is contained in:
parent
f0664e254c
commit
9d8fe572bb
@ -78,8 +78,9 @@ def workspace_reports(workspace_id):
|
|||||||
)
|
)
|
||||||
|
|
||||||
alternate_reports = http_request.args.get("alternate")
|
alternate_reports = http_request.args.get("alternate")
|
||||||
month = http_request.args.get("month", 3)
|
today = date.today()
|
||||||
year = http_request.args.get("year", 2019)
|
month = http_request.args.get("month", today.month)
|
||||||
|
year = http_request.args.get("year", today.year)
|
||||||
current_month = date(int(year), int(month), 15)
|
current_month = date(int(year), int(month), 15)
|
||||||
prev_month = current_month - timedelta(days=28)
|
prev_month = current_month - timedelta(days=28)
|
||||||
two_months_ago = prev_month - timedelta(days=28)
|
two_months_ago = prev_month - timedelta(days=28)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user