mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
index page: Limit latest jobs display to 500 to prevent unecessarily lagging the browser
This commit is contained in:
parent
6eb3075d6b
commit
aa2e196df6
1 changed files with 1 additions and 0 deletions
1
run.py
1
run.py
|
@ -898,6 +898,7 @@ async def ws_index(request, websocket):
|
||||||
Job.select(*selected_fields)
|
Job.select(*selected_fields)
|
||||||
.join(subquery, on=(Job.id == subquery.c.max_id))
|
.join(subquery, on=(Job.id == subquery.c.max_id))
|
||||||
.order_by(-Job.id)
|
.order_by(-Job.id)
|
||||||
|
.limit(500)
|
||||||
)
|
)
|
||||||
|
|
||||||
subquery = (
|
subquery = (
|
||||||
|
|
Loading…
Add table
Reference in a new issue