Skip to content

Commit 0e4965e

Browse files
committed
chore: use f-strings
1 parent 6388d02 commit 0e4965e

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

wlhosted/integrations/management/commands/list_payments.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,5 @@ def handle(self, *args, **options) -> None:
3535
if payment.details["methodId"] != "21":
3636
continue
3737
self.stdout.write(
38-
"{} {}, expires {} [{}]: {}".format(
39-
get_site_url(billing.get_absolute_url()),
40-
billing,
41-
billing.invoice_set.all().order_by("-end")[0].end,
42-
payment.extra["period"],
43-
", ".join(
44-
billing.get_notify_users().values_list("email", flat=True)
45-
),
46-
)
38+
f"{get_site_url(billing.get_absolute_url())} {billing}, expires {billing.invoice_set.all().order_by('-end')[0].end} [{payment.extra['period']}]: {', '.join(billing.get_notify_users().values_list('email', flat=True))}"
4739
)

wlhosted/payments/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class DebugPending(DebugPay):
148148
recurring = False
149149

150150
def perform(self, request, back_url, complete_url):
151-
return redirect("https://cihar.com/?url=" + complete_url)
151+
return redirect(f"https://cihar.com/?url={complete_url}")
152152

153153
def collect(self, request) -> bool:
154154
return True

0 commit comments

Comments
 (0)