Skip to content

Commit

Permalink
fix(backend): status update event stream not working
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <jordanshatford@live.com>
  • Loading branch information
jordanshatford committed Jul 26, 2023
1 parent 69768f6 commit 6c6f140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routers/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def status_stream(request: Request, session_id: str):
update = session_manager.get_status_queue(
session_id,
).get(block=False)
yield update.dict()
yield dict(data=update.json())
except queue.Empty:
pass
await asyncio.sleep(1)
Expand Down

0 comments on commit 6c6f140

Please sign in to comment.