mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
noqa the x == False for sqlalchemy
This commit is contained in:
@@ -55,12 +55,10 @@ class PermissionDAO(DAOClass):
|
||||
return (
|
||||
db.session.execute(
|
||||
select(self.Meta.model)
|
||||
.select_from(
|
||||
self.Meta.model.join(
|
||||
Permission, Permission.user_id == self.Meta.model.user_id
|
||||
).join(Service, Service.id == Permission.service_id)
|
||||
)
|
||||
.where(self.Meta.model.user_id == user_id, Service.active.is_(True))
|
||||
.select_from(self.Meta.model)
|
||||
.join(Permission, Permission.user_id == self.Meta.model.user_id)
|
||||
.join(Service, Service.id == Permission.service_id)
|
||||
.where(Service.active.is_(True))
|
||||
)
|
||||
.scalars()
|
||||
.all()
|
||||
|
||||
Reference in New Issue
Block a user