Skip to content

Commit

Permalink
Fixup. Format code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed May 24, 2024
1 parent 2979783 commit 9133c46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pod/completion/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def verify_attributs(self) -> list:
def verify_not_same_track(self) -> list:
"""Check that there's not already a track with same kind & lang."""
msg = list()
list_track = Track.objects.filter(video=self.video).order_by('lang')
list_track = Track.objects.filter(video=self.video).order_by("lang")
if self.id:
list_track = list_track.exclude(id=self.id)

Expand Down
8 changes: 4 additions & 4 deletions pod/completion/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def video_completion(request: WSGIRequest, slug: str):
raise PermissionDenied
elif request.user.is_staff:
list_contributor = video.contributor_set.all()
list_track = video.track_set.all().order_by('lang')
list_track = video.track_set.all().order_by("lang")
list_document = video.document_set.all()
list_overlay = video.overlay_set.all()
else:
Expand Down Expand Up @@ -246,7 +246,7 @@ def video_completion_contributor(request: WSGIRequest, slug: str):
raise PermissionDenied
elif request.user.is_staff:
list_contributor = video.contributor_set.all()
list_track = video.track_set.all().order_by('lang')
list_track = video.track_set.all().order_by("lang")
list_document = video.document_set.all()
list_overlay = video.overlay_set.all()
else:
Expand Down Expand Up @@ -649,7 +649,7 @@ def toggle_form_track_is_valid__video_completion_track(request, video, list_trac
def video_completion_track_save(request, video):
"""View to save a track associated to a video."""
form_track = video_completion_get_form_track(request)
list_track = video.track_set.all().order_by('lang')
list_track = video.track_set.all().order_by("lang")

if form_track.is_valid():
form_track.save()
Expand Down Expand Up @@ -702,7 +702,7 @@ def video_completion_track_delete(request, video):
"""View to delete a track associated to a video."""
track = get_object_or_404(Track, id=request.POST["id"])
track.delete()
list_track = video.track_set.all().order_by('lang')
list_track = video.track_set.all().order_by("lang")
return toggle_form_track_is_valid__video_completion_track(request, video, list_track)


Expand Down

0 comments on commit 9133c46

Please sign in to comment.