mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Applied Black
This commit is contained in:
parent
4d93149c2b
commit
8bb07f80b1
2 changed files with 6 additions and 2 deletions
|
|
@ -1123,7 +1123,9 @@ class Datasette:
|
|||
elif resource is not None:
|
||||
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"""
|
||||
WITH rules AS (
|
||||
|
|
|
|||
|
|
@ -425,7 +425,9 @@ class PermissionRulesView(BaseView):
|
|||
page_size = max_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()
|
||||
db = self.ds.get_internal_database()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue