Skip to content

Commit

Permalink
Fix use workspace command
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Jul 17, 2024
1 parent ea15073 commit b331468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singlestoredb/fusion/handlers/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
from singlestoredb.notebook import portal
if params['workspace'].get('current_workspace'):
if params.get('with_database'):
portal.default_database = params['workspace']['with_database']
portal.default_database = params['with_database']
elif params.get('with_database'):
if params['workspace'].get('workspace_name'):
portal.connection = params['workspace']['workspace_name'], \
Expand Down

0 comments on commit b331468

Please sign in to comment.