kopia lustrzana https://github.com/simonw/datasette
Fixed table_action example in docs
rodzic
7402294018
commit
1bff3f1a70
|
@ -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 [
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue