datasette icon indicating copy to clipboard operation
datasette copied to clipboard

`filters_from_request` plugin hook docs should mention that returning an async function is allowed

Open simonw opened this issue 3 years ago • 0 comments

https://docs.datasette.io/en/stable/plugin_hooks.html#filters-from-request-request-database-table-datasette doesn't mention that you can return an async function - but you can, and in fact Datasette itself uses that here: https://github.com/simonw/datasette/blob/aa7f0037a46eb76ae6fe9bf2a1f616c58738ecdf/datasette/filters.py#L43-L47

simonw avatar Feb 18 '22 00:02 simonw