Fix nutriscore rake task
This commit is contained in:
parent
6706b9004f
commit
ebaecd1edd
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ namespace :'2018_07_31_nutriscore' do
|
|||
libelle: 'Numéro SIRET'
|
||||
)
|
||||
) do |d, target_tdc|
|
||||
if d.etablissement.present?
|
||||
d.etablissement.signature = d.etablissement.sign
|
||||
end
|
||||
target_tdc.champ.create(
|
||||
value: d.etablissement&.siret,
|
||||
etablissement: d.etablissement,
|
||||
|
|
Loading…
Reference in a new issue