End time as error msg

This commit is contained in:
Christoph Stahl 2023-05-23 09:07:38 +02:00
parent 57e55363d9
commit 6e2834fc5f

View file

@ -264,11 +264,8 @@ async def append_to_queue(
end_time = datetime.datetime.fromtimestamp(state.config.last_song) end_time = datetime.datetime.fromtimestamp(state.config.last_song)
if report_to is not None: if report_to is not None:
await sio.emit( await sio.emit(
"msg", "err",
{ {"type": "QUEUE_FULL", "end_time": state.config.last_song},
"msg": f"The song queue ends at {end_time.hour:02d}:"
f"{end_time.minute:02d}."
},
room=report_to, room=report_to,
) )
return return