mirror of
https://github.com/yeongpin/cursor-free-vip.git
synced 2025-08-02 20:47:35 +08:00
Add support for 'Free Trial' membership type in format_subscription_type function
This commit is contained in:
parent
df58b2e4ab
commit
4485cc5571
@ -238,6 +238,8 @@ def format_subscription_type(subscription_data: Dict) -> str:
|
|||||||
if subscription_status == "active":
|
if subscription_status == "active":
|
||||||
if membership_type == "pro":
|
if membership_type == "pro":
|
||||||
return "Pro"
|
return "Pro"
|
||||||
|
elif membership_type == "free_trial":
|
||||||
|
return "Free Trial"
|
||||||
elif membership_type == "pro_trial":
|
elif membership_type == "pro_trial":
|
||||||
return "Pro Trial"
|
return "Pro Trial"
|
||||||
elif membership_type == "team":
|
elif membership_type == "team":
|
||||||
@ -262,6 +264,8 @@ def format_subscription_type(subscription_data: Dict) -> str:
|
|||||||
return "Pro"
|
return "Pro"
|
||||||
elif "pro_trial" in plan.lower():
|
elif "pro_trial" in plan.lower():
|
||||||
return "Pro Trial"
|
return "Pro Trial"
|
||||||
|
elif "free_trial" in plan.lower():
|
||||||
|
return "Free Trial"
|
||||||
elif "team" in plan.lower():
|
elif "team" in plan.lower():
|
||||||
return "Team"
|
return "Team"
|
||||||
elif "enterprise" in plan.lower():
|
elif "enterprise" in plan.lower():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user