mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Handle None back from that plugin
This commit is contained in:
parent
5116c4ec8a
commit
5c02a6b0f4
1 changed files with 4 additions and 0 deletions
|
|
@ -350,9 +350,13 @@ class TableView(RowTableShared):
|
|||
|
||||
# filter_arguments plugin hook support
|
||||
for awaitable_fn in pm.hook.table_filter():
|
||||
if awaitable_fn is None:
|
||||
continue
|
||||
extras = await awaitable_fn(
|
||||
view=self, name=name, table=table, request=request
|
||||
)
|
||||
if extras is None:
|
||||
continue
|
||||
human_description_extras.extend(extras.human_description_extras)
|
||||
where_clauses.extend(extras.where_clauses)
|
||||
params.update(extras.params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue