mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
fix: available endpoint showing specs without drivers (#15587)
This commit is contained in:
parent
4f5f9287fc
commit
301b94f49a
@ -919,6 +919,9 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
|||||||
preferred_databases: List[str] = app.config.get("PREFERRED_DATABASES", [])
|
preferred_databases: List[str] = app.config.get("PREFERRED_DATABASES", [])
|
||||||
available_databases = []
|
available_databases = []
|
||||||
for engine_spec, drivers in get_available_engine_specs().items():
|
for engine_spec, drivers in get_available_engine_specs().items():
|
||||||
|
if not drivers:
|
||||||
|
continue
|
||||||
|
|
||||||
payload: Dict[str, Any] = {
|
payload: Dict[str, Any] = {
|
||||||
"name": engine_spec.engine_name,
|
"name": engine_spec.engine_name,
|
||||||
"engine": engine_spec.engine,
|
"engine": engine_spec.engine,
|
||||||
|
Loading…
Reference in New Issue
Block a user