Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions superset/cli/importexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def import_datasources(path: str) -> None:
from superset.commands.dataset.importers.dispatcher import ImportDatasetsCommand
from superset.commands.importers.v1.utils import get_contents_from_bundle

g.user = security_manager.find_user(username="admin")
Comment thread
ddxv marked this conversation as resolved.
Outdated

if is_zipfile(path):
with ZipFile(path) as bundle:
contents = get_contents_from_bundle(bundle)
Expand Down