mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Renamed plugin_extra_options to extra_serve_options
This commit is contained in:
parent
a0fd07adc1
commit
f4b0bc64dc
5 changed files with 13 additions and 13 deletions
|
|
@ -108,7 +108,7 @@ def make_app_client(
|
|||
inspect_data=None,
|
||||
static_mounts=None,
|
||||
template_dir=None,
|
||||
plugin_extra_options=None,
|
||||
extra_serve_options=None,
|
||||
):
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
filepath = os.path.join(tmpdir, filename)
|
||||
|
|
@ -152,7 +152,7 @@ def make_app_client(
|
|||
inspect_data=inspect_data,
|
||||
static_mounts=static_mounts,
|
||||
template_dir=template_dir,
|
||||
plugin_extra_options=plugin_extra_options,
|
||||
extra_serve_options=extra_serve_options,
|
||||
)
|
||||
ds.sqlite_functions.append(("sleep", 1, lambda n: time.sleep(float(n))))
|
||||
client = TestClient(ds.app())
|
||||
|
|
@ -389,7 +389,7 @@ def extra_template_vars(template, database, table, view_name, request, datasette
|
|||
"extra_template_vars": json.dumps({
|
||||
"template": template,
|
||||
"scope_path": request.scope["path"],
|
||||
"plugin_extra_options": datasette.plugin_extra_options,
|
||||
"extra_serve_options": datasette.extra_serve_options,
|
||||
}, default=lambda b: b.decode("utf8"))
|
||||
}
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue