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

(cherry picked from commit e246916)
  • Loading branch information
AAfghahi authored and Steven Uray committed Aug 31, 2021
1 parent f8212ad commit e7aac3f
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 @@ -3026,12 +3026,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 e7aac3f

Please sign in to comment.