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 0c58b73 commit a1b0340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pretalx_media_ccc_de/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def __init__(self, *args, **kwargs):

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

self.talks = (
event.current_schedule.talks.all()
Expand Down
6 changes: 3 additions & 3 deletions pretalx_media_ccc_de/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def serialize(self):
return {
"submission": self.submission.code,
"url": self.url,
"release_date": self.release_date.isoformat()
if self.release_date
else None,
"release_date": (
self.release_date.isoformat() if self.release_date else None
),
"duration_seconds": self.duration_seconds,
"thumbnail_url": self.thumbnail_url,
}

0 comments on commit a1b0340

Please sign in to comment.