mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
fix an issue in app view
This commit is contained in:
parent
f60055ae8e
commit
84df910e20
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ sanic==21.3.4
|
|||
sanic-jinja2==0.10.0
|
||||
sanic-routing==0.6.2
|
||||
typing-extensions==3.10.0.0
|
||||
ujson==1.35
|
||||
ujson==4.0.2
|
||||
urllib3==1.26.5
|
||||
uvloop==0.11.3
|
||||
websockets==8.1
|
||||
|
|
4
run.py
4
run.py
|
@ -706,10 +706,10 @@ async def ws_app(request, websocket, app_name):
|
|||
|
||||
subscribe(websocket, f"app-jobs-{app.url}")
|
||||
|
||||
job = list(Job.select().where(Job.url_or_path == app.url).order_by(-Job.id).dicts())
|
||||
await websocket.send(json.dumps({
|
||||
"action": "init_jobs",
|
||||
"data": Job.select().where(Job.url_or_path ==
|
||||
app.url).order_by(-Job.id),
|
||||
"data": job,
|
||||
}, default=datetime_to_epoch_json_converter))
|
||||
|
||||
await websocket.wait_closed()
|
||||
|
|
Loading…
Add table
Reference in a new issue