Skip to content

Commit

Permalink
🎨 Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienCozeDev committed Nov 6, 2023
1 parent 247e22d commit 2637772
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions pod/playlist/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def check_password(form_password: str, playlist: Playlist) -> bool:
hashed_password = hashlib.sha256(form_password.encode("utf-8")).hexdigest()
return hashed_password == playlist.password


def playlist_can_be_displayed(request: WSGIRequest, playlist: Playlist) -> bool:
"""
Check if the playlist can be displayed by the current user.
Expand Down
1 change: 0 additions & 1 deletion pod/video/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from pod.playlist.apps import FAVORITE_PLAYLIST_NAME
from pod.playlist.models import Playlist, PlaylistContent
from pod.playlist.utils import (
get_playlists_for_additional_owner,
get_video_list_for_playlist,
playlist_can_be_displayed,
user_can_see_playlist_video,
Expand Down

0 comments on commit 2637772

Please sign in to comment.