[mod] move condition in sql

This commit is contained in:
Laurent Peuch 2019-06-23 04:25:37 +02:00
parent bb99d52865
commit af105f1c28

5
run.py
View file

@ -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,