|
|
@ -13,10 +13,12 @@ def find_or_create_user(organisation, email, name, role) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
if LocalAuthority.count.zero? |
|
|
|
if LocalAuthority.count.zero? |
|
|
|
la_path = "config/local_authorities_data/initial_local_authorities.csv" |
|
|
|
paths = ["config/local_authorities_data/initial_local_authorities.csv", "config/local_authorities_data/2025_local_authorities.csv"] |
|
|
|
service = Imports::LocalAuthoritiesService.new(path: la_path) |
|
|
|
paths.each do |path| |
|
|
|
|
|
|
|
service = Imports::LocalAuthoritiesService.new(path:) |
|
|
|
service.call |
|
|
|
service.call |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
unless Rails.env.test? |
|
|
|
unless Rails.env.test? |
|
|
|
if LaRentRange.count.zero? |
|
|
|
if LaRentRange.count.zero? |
|
|
|