Skip to content

Commit

Permalink
fix: Fix regression introduced in #20893 (#21743)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley committed Oct 13, 2022
1 parent 88a89c9 commit 3936e9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,10 @@ def tables( # pylint: disable=no-self-use
extra_dict_by_name = {
table.name: table.extra_dict
for table in (
db.session.query(SqlaTable).filter(SqlaTable.schema == schema_parsed)
db.session.query(SqlaTable).filter(
SqlaTable.database_id == database.id,
SqlaTable.schema == schema_parsed,
)
).all()
}

Expand Down

0 comments on commit 3936e9e

Please sign in to comment.