fix: select database fix (#16472)

* select database fix

* made a backend change
This commit is contained in:
AAfghahi 2021-08-30 20:04:10 -04:00 committed by GitHub
parent a616b8785e
commit e2469162fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -3004,12 +3004,12 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
.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