From d6da217e089a6e54d34816b19d49c0d1ec1d27dd Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Wed, 5 Sep 2018 17:31:32 -0400 Subject: [PATCH] Run that formatter jawn --- atst/domain/reports.py | 24 ++++-------------------- atst/routes/workspaces.py | 7 +++---- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/atst/domain/reports.py b/atst/domain/reports.py index 42bae5b0..89bcf7c9 100644 --- a/atst/domain/reports.py +++ b/atst/domain/reports.py @@ -118,27 +118,11 @@ MONTHLY_SPEND_AARDVARK = { MONTHLY_SPEND_BELUGA = { "NP02": { - "Integ": { - "02/2019": 284, - "03/2019": 1210, - }, - "PreProd": { - "02/2019": 812, - "03/2019": 1389, - }, - "Prod": { - "02/2019": 3742, - "03/2019": 4716, - }, - }, - "FM": { - "Integ": { - "03/2019": 1498, - }, - "Prod": { - "03/2019": 5686, - }, + "Integ": {"02/2019": 284, "03/2019": 1210}, + "PreProd": {"02/2019": 812, "03/2019": 1389}, + "Prod": {"02/2019": 3742, "03/2019": 4716}, }, + "FM": {"Integ": {"03/2019": 1498}, "Prod": {"03/2019": 5686}}, } diff --git a/atst/routes/workspaces.py b/atst/routes/workspaces.py index a49a5996..63524ab6 100644 --- a/atst/routes/workspaces.py +++ b/atst/routes/workspaces.py @@ -75,14 +75,13 @@ def workspace_reports(workspace_id): ): raise UnauthorizedError(g.current_user, "view workspace reports") - alternate_reports = http_request.args.get('alternate') - month = http_request.args.get('month', 3) - year = http_request.args.get('year', 2019) + alternate_reports = http_request.args.get("alternate") + month = http_request.args.get("month", 3) + year = http_request.args.get("year", 2019) current_month = date(int(year), int(month), 15) prev_month = current_month - timedelta(days=28) two_months_ago = prev_month - timedelta(days=28) - return render_template( "workspace_reports.html", workspace_totals=Reports.workspace_totals(alternate_reports),