Skip to content

Commit

Permalink
simplify conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Apr 24, 2024
1 parent df3be44 commit 11d6b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/org/maproulette/models/dal/TaskDAL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ class TaskDAL @Inject() (
case Some(p) =>
appendInWhereClause(
whereClause,
s"tasks.priority = $p AND tasks.status != ${Task.STATUS_SKIPPED} AND tasks.status != ${Task.STATUS_TOO_HARD} AND (tasks.completed_by != ${user.id} OR tasks.completed_by IS NULL)"
s"tasks.priority = $p AND (tasks.completed_by != ${user.id} OR tasks.completed_by IS NULL)"
)
case None => // Ignore
}
Expand Down

0 comments on commit 11d6b8d

Please sign in to comment.