Applied blacken-docs

pull/2181/head
Simon Willison 2023-09-07 15:57:27 -07:00
rodzic dbfad6d220
commit ab040470e2
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -1450,13 +1450,18 @@ This example adds a new database action for creating a table, if the user has th
def database_actions(datasette, actor, database):
async def inner():
if not await datasette.permission_allowed(
actor, "edit-schema", resource=database, default=False
actor,
"edit-schema",
resource=database,
default=False,
):
return []
return [
{
"href": datasette.urls.path(
"/-/edit-schema/{}/-/create".format(database)
"/-/edit-schema/{}/-/create".format(
database
)
),
"label": "Create a table",
}