Skip to content

Commit

Permalink
due to recent change in report generation (to support different studi…
Browse files Browse the repository at this point in the history
…es) we exposed a SQLAlchemy issue where a filter on `IN` fails if the parameter contains a single item and isn't structured as a list. (#4276)
  • Loading branch information
pbugni authored Dec 21, 2022
1 parent 5ecea3d commit 0d35e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/models/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def staff_generator():
# email including all respective orgs for given user.
for user in User.query.join(
UserRoles).join(Role).filter(
Role.name.in_(ROLE.STAFF.value)).filter(
Role.name == ROLE.STAFF.value).filter(
User.id == UserRoles.user_id).filter(
Role.id == UserRoles.role_id).filter(
User.deleted_id.is_(None)):
Expand Down

0 comments on commit 0d35e8a

Please sign in to comment.