Skip to content

Commit

Permalink
Added additional data & documents check for reference records
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Apr 4, 2024
1 parent cb84903 commit 2b2c8f3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ class ReferenceAssessmentController {
return
}

// Filter out any records without data or documents
refActivities = refActivities.findAll {
it.outputs[0].keySet().contains('data') &&
it.documents.size() > 0
}

// Filter out reference activities by the supplied vegetation structure groups & climate groups
refActivities = refActivities.findAll {
body["vegetationStructureGroups"].contains(it.outputs[0].data["vegetationStructureGroup"]) &&
Expand Down

0 comments on commit 2b2c8f3

Please sign in to comment.