Skip to content

Commit

Permalink
update db for expose in sqllab param (apache#15609)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored and cccs-RyanS committed Dec 17, 2021
1 parent beb9a83 commit e9d9ad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/databases/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def post(self) -> Response:
new_model = CreateDatabaseCommand(g.user, item).run()
# Return censored version for sqlalchemy URI
item["sqlalchemy_uri"] = new_model.sqlalchemy_uri
item["expose_in_sqllab"] = new_model.expose_in_sqllab

# If parameters are available return them in the payload
if new_model.parameters:
Expand Down

0 comments on commit e9d9ad9

Please sign in to comment.