Fixed table_action example in docs

This commit is contained in:
Simon Willison 2023-01-04 10:25:04 -08:00 committed by GitHub
commit deb5fcbed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1393,7 +1393,7 @@ This example adds a new table action if the signed in user is ``"root"``:
@hookimpl
def table_actions(datasette, actor):
def table_actions(datasette, actor, database, table):
if actor and actor.get("id") == "root":
return [
{