datasette-leaflet-freedraw is an example of filters_from_request

pull/1589/head
Simon Willison 2021-12-17 15:28:44 -08:00
rodzic d0f24f9bbc
commit 0c91e59d2b
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -976,6 +976,8 @@ This example plugin causes 0 results to be returned if ``?_nothing=1`` is added
if request.args.get("_nothing"):
return FilterArguments(["1 = 0"], human_descriptions=["NOTHING"])
Example: `datasette-leaflet-freedraw <https://datasette.io/plugins/datasette-leaflet-freedraw>`_
.. _plugin_hook_permission_allowed:
permission_allowed(datasette, actor, action, resource)