mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] move condition in sql
This commit is contained in:
parent
bb99d52865
commit
af105f1c28
1 changed files with 1 additions and 4 deletions
5
run.py
5
run.py
|
@ -680,10 +680,7 @@ async def ws_apps(request, websocket):
|
|||
|
||||
# add apps without jobs
|
||||
selected_repos = {x["id"] for x in repos}
|
||||
for repo in Repo.select():
|
||||
if repo.id in selected_repos:
|
||||
continue
|
||||
|
||||
for repo in Repo.select().where(Repo.id.not_in(selected_repos)):
|
||||
repos.append({
|
||||
"id": repo.id,
|
||||
"name": repo.name,
|
||||
|
|
Loading…
Add table
Reference in a new issue