Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit abc6b36

Browse files
authored
Update with value instead of keys for plan data dict (#458)
1 parent 3616116 commit abc6b36

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

shared/plan/constants.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ def convert_to_DTO(self) -> dict:
100100
"tier_name": self.tier_name,
101101
"monthly_uploads_limit": self.monthly_uploads_limit,
102102
"trial_days": self.trial_days,
103-
"is_free_plan": self.tier_name == TierName.BASIC,
104-
"is_pro_plan": self.tier_name == TierName.PRO,
105-
"is_team_plan": self.tier_name == TierName.TEAM,
106-
"is_enterprise_plan": self.tier_name == TierName.ENTERPRISE,
103+
"is_free_plan": self.tier_name == TierName.BASIC.value,
104+
"is_pro_plan": self.tier_name == TierName.PRO.value,
105+
"is_team_plan": self.tier_name == TierName.TEAM.value,
106+
"is_enterprise_plan": self.tier_name == TierName.ENTERPRISE.value,
107+
"is_trial_plan": self.value == PlanName.TRIAL_PLAN_NAME.value,
107108
"is_sentry_plan": self.value in SENTRY_PAID_USER_PLAN_REPRESENTATIONS,
108109
}
109110

0 commit comments

Comments
 (0)