mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore: abstract models and daos into superset-core (#35259)
This commit is contained in:
@@ -51,7 +51,7 @@ class UpdateRLSRuleCommand(BaseCommand):
|
||||
raise RLSRuleNotFoundError()
|
||||
roles = populate_roles(self._roles)
|
||||
tables = (
|
||||
db.session.query(SqlaTable).filter(SqlaTable.id.in_(self._tables)).all()
|
||||
db.session.query(SqlaTable).filter(SqlaTable.id.in_(self._tables)).all() # type: ignore[attr-defined]
|
||||
)
|
||||
if len(tables) != len(self._tables):
|
||||
raise DatasourceNotFoundValidationError()
|
||||
|
||||
Reference in New Issue
Block a user