style: fix code style
This commit is contained in:
parent
b99264647d
commit
1a3382614a
|
@ -12,9 +12,11 @@ def pretalx_musicrate_placeholders(sender, **kwargs):
|
|||
SimpleFunctionalMailTextPlaceholder(
|
||||
"assignee",
|
||||
["submission"],
|
||||
lambda submission: assignee.user.name
|
||||
lambda submission: (
|
||||
assignee.user.name
|
||||
if (assignee := submission.assignee) is not None
|
||||
else "Günther",
|
||||
else "Günther"
|
||||
),
|
||||
"Günther",
|
||||
_("The name of the submission's assignee"),
|
||||
)
|
||||
|
|
|
@ -323,6 +323,7 @@ class PresenterView(EventPermissionRequired, SubmissionMixin, TemplateView):
|
|||
links.append(
|
||||
(
|
||||
"youtube",
|
||||
(
|
||||
url.removeprefix("http")
|
||||
.removeprefix("s")
|
||||
.removeprefix("://")
|
||||
|
@ -330,6 +331,7 @@ class PresenterView(EventPermissionRequired, SubmissionMixin, TemplateView):
|
|||
if m[1] == "youtu.be/"
|
||||
else "".join(
|
||||
parse_qs(urlparse(url).query).get("v", "dQw4w9WgXcQ")
|
||||
)
|
||||
),
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue