From 4485cc55719c484a6a5fae2f4c94158272815a9d Mon Sep 17 00:00:00 2001 From: yeongpin Date: Fri, 28 Mar 2025 23:47:24 +0800 Subject: [PATCH] Add support for 'Free Trial' membership type in format_subscription_type function --- cursor_acc_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cursor_acc_info.py b/cursor_acc_info.py index 5b34700..adf3bc4 100644 --- a/cursor_acc_info.py +++ b/cursor_acc_info.py @@ -238,6 +238,8 @@ def format_subscription_type(subscription_data: Dict) -> str: if subscription_status == "active": if membership_type == "pro": return "Pro" + elif membership_type == "free_trial": + return "Free Trial" elif membership_type == "pro_trial": return "Pro Trial" elif membership_type == "team": @@ -262,6 +264,8 @@ def format_subscription_type(subscription_data: Dict) -> str: return "Pro" elif "pro_trial" in plan.lower(): return "Pro Trial" + elif "free_trial" in plan.lower(): + return "Free Trial" elif "team" in plan.lower(): return "Team" elif "enterprise" in plan.lower():