diff --git a/app/routers/patching.py b/app/routers/patching.py index f34180c..b7a00aa 100644 --- a/app/routers/patching.py +++ b/app/routers/patching.py @@ -98,7 +98,7 @@ async def config_exclusions_page(request: Request, db=Depends(get_db), WHERE application_name IS NOT NULL AND application_name != '' GROUP BY application_name ORDER BY application_name""")).fetchall() all_apps = db.execute(text("""SELECT id, nom_court FROM applications - WHERE itop_id IS NOT NULL ORDER BY nom_court""")).fetchall() + ORDER BY nom_court""")).fetchall() # Stats globales stats = { @@ -346,7 +346,7 @@ async def correspondance_page(request: Request, db=Depends(get_db), envs = db.execute(text("SELECT DISTINCT name FROM environments ORDER BY name")).fetchall() domains = db.execute(text("SELECT DISTINCT name FROM domains ORDER BY name")).fetchall() all_apps = db.execute(text("""SELECT id, nom_court FROM applications - WHERE itop_id IS NOT NULL ORDER BY nom_court""")).fetchall() + ORDER BY nom_court""")).fetchall() # Stats globales stats = { diff --git a/app/routers/servers.py b/app/routers/servers.py index d89bb27..7cf9ec9 100644 --- a/app/routers/servers.py +++ b/app/routers/servers.py @@ -136,7 +136,7 @@ async def server_edit(request: Request, server_id: int, db=Depends(get_db)): "SELECT name FROM zones ORDER BY name" )).fetchall() applications = db.execute(sqlt( - "SELECT id, nom_court FROM applications WHERE itop_id IS NOT NULL ORDER BY nom_court" + "SELECT id, nom_court FROM applications ORDER BY nom_court" )).fetchall() return templates.TemplateResponse("partials/server_edit.html", { "request": request, "s": s, "domains": domains, "envs": envs, "ips": ips,