Skip to content

Commit

Permalink
Merge pull request #13086 from albertkol/is-expiring-closed-renewal-bug
Browse files Browse the repository at this point in the history
Is expiring closed/done Renewal bug fix
  • Loading branch information
albertkol authored Aug 11, 2023
2 parents 04c78ac + b0f55ae commit e59e032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/shop/api/ua_contracts/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def get_user_subscription_statuses(
if type == "free":
return statuses

if renewal is None or (renewal and renewal.status != "closed"):
if renewal is None or (
renewal and renewal.status not in ["done", "closed"]
):
date_statuses = get_date_statuses(type, end_date)
statuses["is_expiring"] = date_statuses["is_expiring"]
statuses["is_in_grace_period"] = date_statuses["is_in_grace_period"]
Expand Down

0 comments on commit e59e032

Please sign in to comment.