This commit is contained in:
2025-08-31 20:46:16 +03:00
parent d952820c15
commit 3ca54ebaf6

View File

@@ -1004,15 +1004,15 @@ class OrdersEditPage:
self.dashboard.placeholder.update()
def get_current_subscription_plan(self):
try:
#try:
token = self.page.client_storage.get("token")
headers = {"Authorization": f"Bearer {token}"}
response = requests.get(f"{API_BASE_URL}/subscription", headers=headers)
print(response.text)
return response.json()[-1] if response.status_code == 200 else None
except Exception as e:
print("Error loading subscription:", e)
return None
#except Exception as e:
# print("Error loading subscription:", e)
# return None
def build(self):
self.save_btn = ft.FilledButton(