Skip to content

Commit

Permalink
remove duplicate filter for enabled projects
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jun 27, 2024
1 parent 32c45f6 commit 875d807
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/org/maproulette/framework/service/TaskClusterService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,6 @@ class TaskClusterService @Inject() (repository: TaskClusterRepository)
ignoreLocked
)

if (params.projectEnabled.getOrElse(false))
query = query.addFilterGroup(
FilterGroup(
List(
BaseParameter(
Project.FIELD_ENABLED,
true,
Operator.BOOL,
useValueDirectly = true,
table = Some("p")
)
)
)
)

query = params.taskParams.excludeTaskIds match {
case Some(excludedIds) if !excludedIds.isEmpty =>
//this.appendInWhereClause(whereClause, s"(tasks.id NOT IN (${excludedIds.mkString(",")}))")
Expand Down

0 comments on commit 875d807

Please sign in to comment.