mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Rename config= to settings=, refs #1432
This commit is contained in:
parent
77f46297a8
commit
ca4f83dc7b
10 changed files with 35 additions and 33 deletions
|
|
@ -495,14 +495,14 @@ def serve(
|
|||
if metadata:
|
||||
metadata_data = parse_metadata(metadata.read())
|
||||
|
||||
combined_config = {}
|
||||
combined_settings = {}
|
||||
if config:
|
||||
click.echo(
|
||||
"--config name:value will be deprecated in Datasette 1.0, use --setting name value instead",
|
||||
err=True,
|
||||
)
|
||||
combined_config.update(config)
|
||||
combined_config.update(settings)
|
||||
combined_settings.update(config)
|
||||
combined_settings.update(settings)
|
||||
|
||||
kwargs = dict(
|
||||
immutables=immutable,
|
||||
|
|
@ -514,7 +514,7 @@ def serve(
|
|||
template_dir=template_dir,
|
||||
plugins_dir=plugins_dir,
|
||||
static_mounts=static,
|
||||
config=combined_config,
|
||||
settings=combined_settings,
|
||||
memory=memory,
|
||||
secret=secret,
|
||||
version_note=version_note,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue