From 3a8c504a5034e4143779fa51bb0a0322bfe4db9c Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Thu, 7 Nov 2024 10:50:34 -0700 Subject: [PATCH] Typos --- bin/headercheckdashboardproxy | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/headercheckdashboardproxy b/bin/headercheckdashboardproxy index a94a4ad..ea28fbd 100644 --- a/bin/headercheckdashboardproxy +++ b/bin/headercheckdashboardproxy @@ -55,10 +55,12 @@ async def serve_file(request: Request, file_path: str) : shouldremove = True if 'groups' in service.attrs.keys() : allowed_groups = service['groups'].split(',') - if list(set(current_groups) & set(allowed_groups)) == [] : - shouldremove = True - else : - shouldremove = False + else : + allowed_groups = ["Admins"] + if not list(set(current_groups) & set(allowed_groups)) : + shouldremove = True + else : + shouldremove = False if shouldremove : service.decompose() for category in soup.select('li.category:not(:has(ul li))') :