From deb5fcbed473df82fca86d3a112192091599d2e3 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 cdc73f00..0cb478be 100644 --- a/docs/plugin_hooks.rst +++ b/docs/plugin_hooks.rst @@ -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 [ {