Skip to content

Commit

Permalink
feat: add explanation to get_jurisdictions
Browse files Browse the repository at this point in the history
  • Loading branch information
yuelongh committed Dec 20, 2023
1 parent 9bdc0ba commit 32a36aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/presenters/designations_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ def jurisdiction_counts(jurisdiction, exclude_oecms: false)
end

def get_jurisdictions(jurisdiction)
# 'Not Applicable' jurisdictions are to be included with
# 'National' in the country and region show pages.
# https://unep-wcmc.codebasehq.com/projects/protected-planet-support-and-maintenance/tickets/241
# jurisdictions = jurisdiction == 'National' ? ['National', 'Not Applicable'] : jurisdiction

# As 20 DEC 2023 Not Applicable is now showing as a category
# https://unep-wcmc.codebasehq.com/projects/protected-planet-support-and-maintenance/tickets/337#update-73110217
Jurisdiction.where(name: jurisdiction)
end
end

0 comments on commit 32a36aa

Please sign in to comment.