Skip to content

Commit

Permalink
Merge pull request #295 from noharm-ai/develop
Browse files Browse the repository at this point in the history
fix prioritization search
  • Loading branch information
marceloarocha authored Feb 21, 2024
2 parents d7d79bc + b77a0b2 commit ac7f469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/prescription.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def getPatients(

if len(idDept) > 0:
idDept = list(map(int, idDept))
if currentDepartment or concilia != 0:
if currentDepartment or bool(int(none2zero(concilia))) == True:
q = q.filter(Prescription.idDepartment.in_(idDept))
else:
q = q.filter(postgresql.array(idDept).overlap(Prescription.aggDeps))
Expand Down

0 comments on commit ac7f469

Please sign in to comment.