mirror of
https://github.com/alexta69/metube.git
synced 2025-04-03 20:27:36 +03:00
use serializer.encode instead of json.dumps
This commit is contained in:
parent
caca271e19
commit
72b7447c78
1 changed files with 3 additions and 3 deletions
|
@ -137,11 +137,11 @@ async def history(request):
|
|||
history = { 'done': [], 'queue': []}
|
||||
|
||||
for _ ,v in dqueue.queue.saved_items():
|
||||
history['queue'].append(vars(v))
|
||||
history['queue'].append(v)
|
||||
for _ ,v in dqueue.done.saved_items():
|
||||
history['done'].append(vars(v))
|
||||
history['done'].append(v)
|
||||
|
||||
return web.Response(text=json.dumps(history))
|
||||
return web.Response(text=serializer.encode(history))
|
||||
|
||||
@sio.event
|
||||
async def connect(sid, environ):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue