diff --git a/pretalx_musicrate/signals.py b/pretalx_musicrate/signals.py index e1c2d4d..c9b03db 100644 --- a/pretalx_musicrate/signals.py +++ b/pretalx_musicrate/signals.py @@ -12,9 +12,11 @@ def pretalx_musicrate_placeholders(sender, **kwargs): SimpleFunctionalMailTextPlaceholder( "assignee", ["submission"], - lambda submission: assignee.user.name - if (assignee := submission.assignee) is not None - else "Günther", + lambda submission: ( + assignee.user.name + if (assignee := submission.assignee) is not None + else "Günther" + ), "Günther", _("The name of the submission's assignee"), ) diff --git a/pretalx_musicrate/views.py b/pretalx_musicrate/views.py index 43829cf..c6eff9d 100644 --- a/pretalx_musicrate/views.py +++ b/pretalx_musicrate/views.py @@ -323,13 +323,15 @@ class PresenterView(EventPermissionRequired, SubmissionMixin, TemplateView): links.append( ( "youtube", - url.removeprefix("http") - .removeprefix("s") - .removeprefix("://") - .removeprefix("youtu.be/")[:11] - if m[1] == "youtu.be/" - else "".join( - parse_qs(urlparse(url).query).get("v", "dQw4w9WgXcQ") + ( + url.removeprefix("http") + .removeprefix("s") + .removeprefix("://") + .removeprefix("youtu.be/")[:11] + if m[1] == "youtu.be/" + else "".join( + parse_qs(urlparse(url).query).get("v", "dQw4w9WgXcQ") + ) ), ) )