Skip to content

Commit

Permalink
fix: select database fix (apache#16472)
Browse files Browse the repository at this point in the history
* select database fix

* made a backend change
  • Loading branch information
AAfghahi authored Aug 31, 2021
1 parent a616b87 commit e246916
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3004,12 +3004,12 @@ def _get_sqllab_tabs(user_id: int) -> Dict[str, Any]:
.first()
)

databases: Dict[int, Any] = {
database.id: {
databases: Dict[int, Any] = {}
for database in DatabaseDAO.find_all():
databases[database.id] = {
k: v for k, v in database.to_json().items() if k in DATABASE_KEYS
}
for database in DatabaseDAO.find_all()
}
databases[database.id]["backend"] = database.backend
queries: Dict[str, Any] = {}

# These are unnecessary if sqllab backend persistence is disabled
Expand Down

0 comments on commit e246916

Please sign in to comment.