Skip to content

Commit 530c4d2

Browse files
committed
format
1 parent 3b46530 commit 530c4d2

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

backend/btrixcloud/invites.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
InviteOut,
2121
User,
2222
Organization,
23-
Subscription
23+
Subscription,
2424
)
2525
from .users import UserManager
2626
from .emailsender import EmailSender

backend/btrixcloud/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,7 @@ class SubscriptionCanceledResponse(BaseModel):
19601960
deleted: bool
19611961
canceled: bool
19621962

1963+
19631964
# ============================================================================
19641965
class SubscriptionReminderResponse(BaseModel):
19651966
"""Response model for subscription reminder"""

backend/btrixcloud/subs.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,14 @@ async def send_trial_end_reminder(
197197
)
198198

199199
if not org.subscription:
200-
print(f"Subscription not found for organization ID {org.id} with sub id {reminder.subId}")
201-
raise HTTPException(
202-
status_code=404, detail="subscription_not_found"
200+
print(
201+
f"Subscription not found for organization ID {org.id} with sub id {reminder.subId}"
203202
)
203+
raise HTTPException(status_code=404, detail="subscription_not_found")
204204

205205
if not org.subscription.futureCancelDate:
206206
print(f"Future cancel date not found for subscription ID {reminder.subId}")
207-
raise HTTPException(
208-
status_code=404, detail="future_cancel_date_not_found"
209-
)
207+
raise HTTPException(status_code=404, detail="future_cancel_date_not_found")
210208

211209
users = await self.org_ops.get_users_for_org(org, UserRole.OWNER)
212210
await asyncio.gather(
@@ -216,7 +214,7 @@ async def send_trial_end_reminder(
216214
user_name=user.name,
217215
receiver_email=user.email,
218216
org=org,
219-
behavior_on_trial_end=reminder.behavior_on_trial_end
217+
behavior_on_trial_end=reminder.behavior_on_trial_end,
220218
)
221219
for user in users
222220
]

0 commit comments

Comments
 (0)