Fixed formatting
All checks were successful
Build on push / prepare (push) Successful in 9s
Build on push / core (push) Successful in 17s
Build on push / query (push) Successful in 17s
Build on push / dependency (push) Successful in 17s
Build on push / translation (push) Successful in 14s
Build on push / application (push) Successful in 18s
Build on push / database (push) Successful in 17s
Build on push / mail (push) Successful in 18s
Build on push / auth (push) Successful in 13s
Build on push / api (push) Successful in 17s
Test before pr merge / test-lint (pull_request) Successful in 5s

This commit is contained in:
2025-09-21 23:48:09 +02:00
parent 7fc70747bb
commit 12b7c62b69
10 changed files with 21 additions and 14 deletions

View File

@@ -59,6 +59,7 @@ def add_auth(collection: _ServiceCollection):
migration_service.with_directory(os.path.join(os.path.dirname(os.path.realpath(__file__)), "scripts/mysql"))
except ImportError as e:
from cpl.core.console import Console
Console.error("cpl-database is not installed", str(e))
@@ -69,6 +70,7 @@ def add_permission(collection: _ServiceCollection):
try:
from cpl.database.abc.data_seeder_abc import DataSeederABC
collection.add_singleton(DataSeederABC, PermissionSeeder)
PermissionsRegistry.with_enum(Permissions)
except ImportError as e:

View File

@@ -22,4 +22,4 @@ class KeycloakClient(KeycloakOpenID):
def get_user_id(self, token: str) -> Optional[str]:
info = self.introspect(token)
return info.get("sub", None)
return info.get("sub", None)