From 7f6cebbc5f4a101656be41dcf52277ddfe59c6f6 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Wed, 19 Sep 2018 10:45:54 -0400 Subject: [PATCH] mock expiration date in workspace/reports route --- atst/routes/workspaces.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/atst/routes/workspaces.py b/atst/routes/workspaces.py index 673719a5..33eb2c57 100644 --- a/atst/routes/workspaces.py +++ b/atst/routes/workspaces.py @@ -106,6 +106,11 @@ def workspace_reports(workspace_id): prev_month = current_month - timedelta(days=28) two_months_ago = prev_month - timedelta(days=28) + # lets just say it expires on Christmas... ho ho ho + expiration_date = date(2018, 12, 25) + remaining_difference = expiration_date - current_month + remaining_days = remaining_difference.days + return render_template( "workspaces/reports/index.html", cumulative_budget=Reports.cumulative_budget(alternate_reports), @@ -114,6 +119,8 @@ def workspace_reports(workspace_id): current_month=current_month, prev_month=prev_month, two_months_ago=two_months_ago, + expiration_date=expiration_date, + remaining_days=remaining_days )