From 1bff3f1a70964977bcccc6e9ca80db122c28afcf Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 4 Jan 2023 10:25:04 -0800 Subject: [PATCH] Fixed table_action example in docs --- docs/plugin_hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugin_hooks.rst b/docs/plugin_hooks.rst index 101911cc..399226a0 100644 --- a/docs/plugin_hooks.rst +++ b/docs/plugin_hooks.rst @@ -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 [ {