Skip to content

Commit

Permalink
added back pa_count method in stats::global as i thought it was one o…
Browse files Browse the repository at this point in the history
…f my added methods
  • Loading branch information
stanleypliu committed Aug 5, 2020
1 parent 1bc6447 commit f99a3bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ gem 'sprockets-vue', '~> 0.1.0'

gem 'rails-controller-testing'

# gem 'gdal', '~> 2.0'
# TODO Stanley - Need to remove the below
gem 'gdal', '~> 3.0'
gem 'gdal', '>= 2.0'
#
group :production, :staging do
# gem 'unicorn'
Expand Down
4 changes: 4 additions & 0 deletions lib/modules/stats/global.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
class Stats::Global
IUCN_CATEGORIES = "'Ia', 'Ib', 'II', 'II', 'IV', 'V', 'VI'"

def self.pa_count
ProtectedArea.count
end

def self.percentage_pa_cover
RegionalStatistic.joins(:region)
.where('regions.iso' => 'GLOBAL')
Expand Down

0 comments on commit f99a3bd

Please sign in to comment.