mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Add .limit() to try to improve loading time or app job page
This commit is contained in:
parent
f8f5a1c1fe
commit
54c99f958a
1 changed files with 1 additions and 1 deletions
2
run.py
2
run.py
|
@ -757,7 +757,7 @@ 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())
|
||||
job = list(Job.select().where(Job.url_or_path == app.url).order_by(-Job.id).limit(10).dicts())
|
||||
await websocket.send(my_json_dumps({
|
||||
"action": "init_jobs",
|
||||
"data": job,
|
||||
|
|
Loading…
Add table
Reference in a new issue