kopia lustrzana https://github.com/simonw/datasette
Fixed config_dir mode, refs #1432
rodzic
bbc4756f9e
commit
2883098770
|
@ -278,7 +278,7 @@ class Datasette:
|
|||
if config_dir and (config_dir / "config.json").exists():
|
||||
raise StartupError("config.json should be renamed to settings.json")
|
||||
if config_dir and (config_dir / "settings.json").exists() and not settings:
|
||||
config = json.loads((config_dir / "settings.json").read_text())
|
||||
settings = json.loads((config_dir / "settings.json").read_text())
|
||||
self._settings = dict(DEFAULT_SETTINGS, **(settings or {}))
|
||||
self.renderers = {} # File extension -> (renderer, can_render) functions
|
||||
self.version_note = version_note
|
||||
|
|
Ładowanie…
Reference in New Issue