Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -195,13 +195,11 @@ class Radiocol(object):
] # FIXME: referee comes from Libervia's client side, it's unsecure
radio_data["to_delete"][
attrs["filename"]
] = (
song_path
) # FIXME: works only because of the same host trick, see the note under the docstring
] = song_path # FIXME: works only because of the same host trick, see the note under the docstring
return self.send(referee, ("", "song_added"), attrs, profile=profile)
def play_next(self, room_jid, profile):
""""Play next song in queue if exists, and put a timer
""" "Play next song in queue if exists, and put a timer
which trigger after the song has been played to play next one"""
# TODO: songs need to be erased once played or found invalids
# ==> unlink done the Q&D way with the same host trick (see above)
@ -245,9 +243,7 @@ class Radiocol(object):
try:
file_to_delete = radio_data["to_delete"][filename]
except KeyError:
log.error(
_("INTERNAL ERROR: can't find full path of the song to delete")
)
log.error(_("INTERNAL ERROR: can't find full path of the song to delete"))
return False
else:
file_to_delete = filename