Skip to content

Commit

Permalink
fix: Count only published ASCOR countries at homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Sep 4, 2024
1 parent d06c44e commit 1c17b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/tpi/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def index
corporate_management_quality: page&.contents&.find_by(code: 'corporate_management_quality')&.text || '-',
corporate_carbon_performance: page&.contents&.find_by(code: 'corporate_carbon_performance')&.text || '-',
sectors_count: TPISector.with_companies.count,
ascor_countries: ASCOR::Country.count,
banks: Bank.count
ascor_countries: ASCOR::Country.published.count,
banks: Bank.published.count
}
}
@latest_researches = Publication
Expand Down

0 comments on commit 1c17b82

Please sign in to comment.