Ran Black

This commit is contained in:
Simon Willison 2025-10-25 10:08:24 -07:00
commit 60ed646d45
2 changed files with 8 additions and 4 deletions

View file

@ -124,6 +124,7 @@ app_root = Path(__file__).parent.parent
@dataclasses.dataclass
class PermissionCheck:
"""Represents a logged permission check for debugging purposes."""
when: str
actor: Optional[Dict[str, Any]]
action: str
@ -131,6 +132,7 @@ class PermissionCheck:
child: Optional[str]
result: bool
# https://github.com/simonw/datasette/issues/283#issuecomment-781591015
SQLITE_LIMIT_ATTACHED = 10

View file

@ -660,10 +660,12 @@ class CreateTokenView(BaseView):
tables = []
for table_resource in allowed_tables:
if table_resource.parent == database_name:
tables.append({
"name": table_resource.child,
"encoded": tilde_encode(table_resource.child)
})
tables.append(
{
"name": table_resource.child,
"encoded": tilde_encode(table_resource.child),
}
)
database_with_tables.append(
{