Skip to content

Commit f97d6b0

Browse files
committed
did: black formatting
1 parent aafdffa commit f97d6b0

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

basxconnect/mailer_integration/layouts.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ def mailer_integration_tile(request):
2828
hg.H4(
2929
_("Email Subscriptions"),
3030
),
31-
*[_display_subscription(email) for email in addresses]
32-
if hasattr(person, "core_email_list") and person.core_email_list.count() > 0
33-
else C(_("Person has no email addresses")),
31+
*(
32+
[_display_subscription(email) for email in addresses]
33+
if hasattr(person, "core_email_list") and person.core_email_list.count() > 0
34+
else C(_("Person has no email addresses"))
35+
),
3436
)
3537

3638

@@ -85,12 +87,14 @@ def _display_subscription(email):
8587
R(
8688
C(_("Last synchronized"), width=6, breakpoint="lg"),
8789
C(
88-
localize(
89-
localtime(subscription.latest_sync.sync_completed_datetime),
90-
use_l10n=settings.USE_L10N,
91-
)
92-
if hasattr(subscription.latest_sync, "sync_completed_datetime")
93-
else "",
90+
(
91+
localize(
92+
localtime(subscription.latest_sync.sync_completed_datetime),
93+
use_l10n=settings.USE_L10N,
94+
)
95+
if hasattr(subscription.latest_sync, "sync_completed_datetime")
96+
else ""
97+
),
9498
breakpoint="lg",
9599
),
96100
style="padding-bottom: 24px;",

0 commit comments

Comments
 (0)