diff options
| author | Xinhui | 2016-09-09 12:48:27 +0200 |
|---|---|---|
| committer | Xinhui | 2016-09-09 12:48:49 +0200 |
| commit | c78802969f4d45028d3854198e311530813ae73b (patch) | |
| tree | 720f119123b051fc609a534c54482c924c65760e /lib/stif/codif_line_synchronization.rb | |
| parent | a40c2468c762f039061e71f2e2ba03358e5183ec (diff) | |
| download | chouette-core-c78802969f4d45028d3854198e311530813ae73b.tar.bz2 | |
Model StopAreaReferentialSync
Refs #1609
Diffstat (limited to 'lib/stif/codif_line_synchronization.rb')
| -rw-r--r-- | lib/stif/codif_line_synchronization.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stif/codif_line_synchronization.rb b/lib/stif/codif_line_synchronization.rb index 01ad29afc..9da0e30cc 100644 --- a/lib/stif/codif_line_synchronization.rb +++ b/lib/stif/codif_line_synchronization.rb @@ -61,12 +61,12 @@ module Stif total_deleted = deleted_op + deleted_li + deleted_ne + deleted_gr total_time = elapsed_time_since start_time - LineReferential.first.line_referential_sync.record_status :ok, I18n.t('synchronization.message.success', time: total_time, imported: total_codifligne_elements, deleted: total_deleted) + LineReferential.first.line_referential_sync.record_status :ok, I18n.t('synchronization.codifligne.message.success', time: total_time, imported: total_codifligne_elements, deleted: total_deleted) rescue Exception => e total_time = elapsed_time_since start_time Rails.logger.error "Codifligne:sync - Error: #{e}, ended after #{total_time} seconds" - LineReferential.first.line_referential_sync.record_status :ko, I18n.t('synchronization.message.failure', time: total_time) + LineReferential.first.line_referential_sync.record_status :ko, I18n.t('synchronization.codifligne.message.failure', time: total_time) end end @@ -174,4 +174,4 @@ module Stif end end end -end
\ No newline at end of file +end |
