mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 18:38:14 -04:00
noqa the x == False for sqlalchemy
This commit is contained in:
@@ -57,7 +57,7 @@ class PermissionDAO(DAOClass):
|
||||
select(self.Meta.model)
|
||||
.where(self.Meta.model.user_id == user_id)
|
||||
.join(Permission.service)
|
||||
.where(Permission.active == True) # noqa
|
||||
.where(Permission.service.active == True) # noqa
|
||||
)
|
||||
.scalars()
|
||||
.all()
|
||||
@@ -69,7 +69,10 @@ class PermissionDAO(DAOClass):
|
||||
select(self.Meta.model)
|
||||
.where(self.Meta.model.user_id == user_id)
|
||||
.join(Permission.service)
|
||||
.where(Permission.active == True, Permission.id == service_id) # noqa
|
||||
.where(
|
||||
Permission.service.active == True, # noqa
|
||||
Permission.service.id == service_id,
|
||||
) # noqa
|
||||
)
|
||||
.scalars()
|
||||
.all()
|
||||
|
||||
Reference in New Issue
Block a user