Applied Black

This commit is contained in:
Simon Willison 2025-10-23 15:08:34 -07:00
commit 8bb07f80b1
2 changed files with 6 additions and 2 deletions

View file

@ -1123,7 +1123,9 @@ class Datasette:
elif resource is not None: elif resource is not None:
raise TypeError("resource must be None, str, or (parent, child) tuple") raise TypeError("resource must be None, str, or (parent, child) tuple")
union_sql, union_params = await self._build_permission_rules_sql(actor_dict, action) union_sql, union_params = await self._build_permission_rules_sql(
actor_dict, action
)
query = f""" query = f"""
WITH rules AS ( WITH rules AS (

View file

@ -425,7 +425,9 @@ class PermissionRulesView(BaseView):
page_size = max_page_size page_size = max_page_size
offset = (page - 1) * page_size offset = (page - 1) * page_size
union_sql, union_params = await self.ds._build_permission_rules_sql(actor, action) union_sql, union_params = await self.ds._build_permission_rules_sql(
actor, action
)
await self.ds.refresh_schemas() await self.ds.refresh_schemas()
db = self.ds.get_internal_database() db = self.ds.get_internal_database()