aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stif/reflex_synchronization.rb
diff options
context:
space:
mode:
authorXinhui2017-03-09 12:10:18 +0100
committerXinhui2017-03-09 12:10:18 +0100
commitf4c5751a4037f52ab1d73fc201e81ba07798ecd4 (patch)
treefdc4cba66793aa0e54ccd3aba8b564b8b2c617e3 /lib/stif/reflex_synchronization.rb
parentb1351a0ce13e1c86584640a204ed8e1c32f5dd36 (diff)
downloadchouette-core-f4c5751a4037f52ab1d73fc201e81ba07798ecd4.tar.bz2
Sync Reflex ObjectStatus into StopArea stif_type
Refs #2737
Diffstat (limited to 'lib/stif/reflex_synchronization.rb')
-rw-r--r--lib/stif/reflex_synchronization.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb
index b7295070a..68f7fc621 100644
--- a/lib/stif/reflex_synchronization.rb
+++ b/lib/stif/reflex_synchronization.rb
@@ -147,7 +147,8 @@ module Stif
:area_type => 'TypeOfPlaceRef',
:object_version => 'version',
:zip_code => 'PostalRegion',
- :city_name => 'Town'
+ :city_name => 'Town',
+ :stif_type => 'OBJECT_STATUS'
}.each do |k, v| stop[k] = entry[v] end
if entry['gml:pos']
@@ -157,7 +158,7 @@ module Stif
if stop.changed?
stop.created_at = entry[:created]
- stop.import_xml = entry[:xml]
+ stop.import_xml = entry[:xml]
prop = stop.new_record? ? :imported_count : :updated_count
increment_counts prop, 1
stop.save!