extrapolate days remaining with today, not the focused month
This commit is contained in:
@@ -108,7 +108,7 @@ def workspace_reports(workspace_id):
|
|||||||
|
|
||||||
# lets just say it expires on Christmas... ho ho ho
|
# lets just say it expires on Christmas... ho ho ho
|
||||||
expiration_date = date(2018, 12, 25)
|
expiration_date = date(2018, 12, 25)
|
||||||
remaining_difference = expiration_date - current_month
|
remaining_difference = expiration_date - today
|
||||||
remaining_days = remaining_difference.days
|
remaining_days = remaining_difference.days
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
|
Reference in New Issue
Block a user