mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: load example data into correct DB (#12292)
* fix: load example data into correct DB * Fix force_data * Fix lint
This commit is contained in:
@@ -24,9 +24,9 @@ from superset.commands.importers.v1.examples import ImportExamplesCommand
|
||||
YAML_EXTENSIONS = {".yaml", ".yml"}
|
||||
|
||||
|
||||
def load_from_configs() -> None:
|
||||
def load_from_configs(force_data: bool = False) -> None:
|
||||
contents = load_contents()
|
||||
command = ImportExamplesCommand(contents, overwrite=True)
|
||||
command = ImportExamplesCommand(contents, overwrite=True, force_data=force_data)
|
||||
command.run()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user