Skip to content

Commit

Permalink
Renommer 'AUTHORISED_ESTABLISHMENTS' par 'AUTHORISED_COLLEGES_UAIS'
Browse files Browse the repository at this point in the history
  • Loading branch information
tnicolas1 committed Oct 18, 2024
1 parent 5d1eaf0 commit 3eebc13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/concerns/identity_mappers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def no_value?(line)

def relevant?(attrs)
(Establishment.accepted_type?(attrs[:tty_code]) && !Exclusion.establishment_excluded?(attrs[:uai])) ||
Aplypro::AUTHORISED_ESTABLISHMENTS.include?([attrs[:uai]])
Establishment::AUTHORISED_COLLEGES_UAIS.include?([attrs[:uai]])
end

def no_responsibilities?
Expand Down
6 changes: 3 additions & 3 deletions config/initializers/authorised_establishments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "csv"

module Aplypro
AUTHORISED_ESTABLISHMENTS = CSV.read(Rails.root.join("data/authorised-establishments.csv"),
headers: true, return_headers: false).to_a
module Establishment
AUTHORISED_COLLEGES_UAIS = CSV.read(Rails.root.join("data/authorised-establishments.csv"),
headers: true, return_headers: false).to_a
end

0 comments on commit 3eebc13

Please sign in to comment.