mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Support title/description for canned queries, closes #342
Demo here: https://latest.datasette.io/fixtures/neighborhood_search
This commit is contained in:
parent
58fec99ab0
commit
6e37f091ed
9 changed files with 62 additions and 17 deletions
|
|
@ -433,7 +433,7 @@ class BaseView(RenderMixin):
|
|||
|
||||
async def custom_sql(
|
||||
self, request, name, hash, sql, editable=True, canned_query=None,
|
||||
_size=None
|
||||
metadata=None, _size=None
|
||||
):
|
||||
params = request.raw_args
|
||||
if "sql" in params:
|
||||
|
|
@ -483,6 +483,7 @@ class BaseView(RenderMixin):
|
|||
"named_parameter_values": named_parameter_values,
|
||||
"editable": editable,
|
||||
"canned_query": canned_query,
|
||||
"metadata": metadata,
|
||||
"config": self.ds.config,
|
||||
}, templates
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue