sharktide commited on
Commit
6069f1c
·
verified ·
1 Parent(s): 4b38102

Update subscriptions.py

Browse files
Files changed (1) hide show
  1. subscriptions.py +3 -3
subscriptions.py CHANGED
@@ -23,7 +23,7 @@ async def fetch_subscription(jwt: str):
23
  if not cust_res.data:
24
  return {
25
  "email": email,
26
- "signed_up": signed_up = user.created_at.isoformat() if hasattr(user.created_at, "isoformat") else user.created_at,
27
  "subscription": None
28
  }
29
 
@@ -41,7 +41,7 @@ async def fetch_subscription(jwt: str):
41
  if not sub_res.data:
42
  return {
43
  "email": email,
44
- "signed_up": signed_up = user.created_at.isoformat() if hasattr(user.created_at, "isoformat") else user.created_at,
45
  "subscription": None
46
  }
47
 
@@ -90,6 +90,6 @@ async def fetch_subscription(jwt: str):
90
 
91
  return {
92
  "email": email,
93
- "signed_up": signed_up = user.created_at.isoformat() if hasattr(user.created_at, "isoformat") else user.created_at,
94
  "subscription": subscriptions
95
  }
 
23
  if not cust_res.data:
24
  return {
25
  "email": email,
26
+ "signed_up": user.created_at.isoformat() if hasattr(user.created_at, "isoformat") else user.created_at,
27
  "subscription": None
28
  }
29
 
 
41
  if not sub_res.data:
42
  return {
43
  "email": email,
44
+ "signed_up": user.created_at.isoformat() if hasattr(user.created_at, "isoformat") else user.created_at,
45
  "subscription": None
46
  }
47
 
 
90
 
91
  return {
92
  "email": email,
93
+ "signed_up": user.created_at.isoformat() if hasattr(user.created_at, "isoformat") else user.created_at,
94
  "subscription": subscriptions
95
  }