From 56eb48069525f0bff878c75793d32f382f7816ca Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Wed, 19 Sep 2018 12:10:15 -0400 Subject: [PATCH] extrapolate days remaining with today, not the focused month --- atst/routes/workspaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atst/routes/workspaces.py b/atst/routes/workspaces.py index 33eb2c57..2d5984d4 100644 --- a/atst/routes/workspaces.py +++ b/atst/routes/workspaces.py @@ -108,7 +108,7 @@ def workspace_reports(workspace_id): # lets just say it expires on Christmas... ho ho ho expiration_date = date(2018, 12, 25) - remaining_difference = expiration_date - current_month + remaining_difference = expiration_date - today remaining_days = remaining_difference.days return render_template(