math is hard

This commit is contained in:
chapeau 2025-01-30 08:36:51 +01:00
parent cf881ddbfc
commit 98981cea60

View file

@ -13,7 +13,7 @@ ldap_groups_start_with = "Allowed "
def get_headers(headers):
return (
headers.get("HTTP_AUTH_USER", ""),
[ h[len(ldap_groups_start_with)-1:] for h in headers.get("HTTP_AUTH_GROUPS", "").split("; ") if h[:len(ldap_groups_start_with)] == ldap_groups_start_with ]
[ h[len(ldap_groups_start_with):] for h in headers.get("HTTP_AUTH_GROUPS", "").split("; ") if h[:len(ldap_groups_start_with)] == ldap_groups_start_with ]
)
@app.route("/")