Skip to content

Commit 04cdee6

Browse files
committed
format & fix lint issues
1 parent 530c4d2 commit 04cdee6

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

backend/btrixcloud/emailsender.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@
1414
import aiohttp
1515
from fastapi import HTTPException
1616

17-
from .models import CreateReplicaJob, DeleteReplicaJob, Organization, InvitePending
17+
from .models import (
18+
CreateReplicaJob,
19+
DeleteReplicaJob,
20+
Organization,
21+
InvitePending,
22+
Subscription,
23+
)
1824
from .utils import is_bool, get_origin
19-
from backend.btrixcloud.models import Subscription
2025

2126

2227
# pylint: disable=too-few-public-methods, too-many-instance-attributes

backend/btrixcloud/invites.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ async def init_index(self) -> None:
6868
await self.invites.create_index([("tokenHash", pymongo.HASHED)])
6969

7070
async def add_new_user_invite(
71+
# pylint: disable=R0913
7172
self,
7273
new_user_invite: InvitePending,
7374
invite_token: UUID,

backend/btrixcloud/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,6 +1948,7 @@ class Subscription(BaseModel):
19481948
planId: str
19491949

19501950
futureCancelDate: Optional[datetime] = None
1951+
# pylint: disable=C0301
19511952
"When in a trial, future cancel date is the trial end date; when not in a trial, future cancel date is the date the subscription will be canceled, if set"
19521953

19531954
readOnlyOnCancel: bool = False

backend/btrixcloud/subs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
SubscriptionPortalUrlRequest,
2828
SubscriptionPortalUrlResponse,
2929
SubscriptionCanceledResponse,
30+
SubscriptionTrialEndReminder,
3031
SubscriptionReminderResponse,
3132
Organization,
3233
InviteToOrgRequest,
@@ -41,7 +42,6 @@
4142
)
4243
from .pagination import DEFAULT_PAGE_SIZE, paginated_format
4344
from .utils import dt_now
44-
from backend.btrixcloud.models import SubscriptionTrialEndReminder
4545

4646

4747
# if set, will enable this api
@@ -188,6 +188,8 @@ async def send_trial_end_reminder(
188188
self,
189189
reminder: SubscriptionTrialEndReminder,
190190
):
191+
"""Send a trial end reminder email to the organization admins"""
192+
191193
org = await self.org_ops.find_org_by_subscription_id(reminder.subId)
192194

193195
if not org:

0 commit comments

Comments
 (0)