Skip to content

Commit

Permalink
Fix issue when call JRC API
Browse files Browse the repository at this point in the history
  • Loading branch information
stacytalbot committed Aug 18, 2020
1 parent 0e94264 commit 3781660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/stats/country_statistics_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def import(iso3=nil)
jrc_terr_area: stat[TERR_AREA_ATTRIBUTE]
}
endpoints.each do |name|
attribute = STATISTICS_API[name][:attribute]
attribute = STATISTICS_API[name.to_sym][:attribute]
attr_name = "percentage_#{name}"

attrs[attr_name] = stat[attribute]
Expand Down

0 comments on commit 3781660

Please sign in to comment.