Fixed table_action example in docs

This commit is contained in:
Simon Willison 2023-01-04 10:25:04 -08:00
commit 1bff3f1a70

View file

@ -1346,7 +1346,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 [
{