Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Feb 19, 2024
1 parent 2408ca6 commit 10110f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pretalx_youtube/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class FileUploadForm(forms.Form):

class YouTubeUrlForm(forms.Form):
def __init__(self, *args, event, **kwargs):
if not event.current_schedule:
return super().__init__(*args, **kwargs)

super().__init__(*args, **kwargs)

if not event or not event.current_schedule:
return

self.talks = (
event.current_schedule.talks.all()
.filter(is_visible=True, submission__isnull=False)
Expand Down

0 comments on commit 10110f1

Please sign in to comment.