From f4c5751a4037f52ab1d73fc201e81ba07798ecd4 Mon Sep 17 00:00:00 2001 From: Xinhui Date: Thu, 9 Mar 2017 12:10:18 +0100 Subject: Sync Reflex ObjectStatus into StopArea stif_type Refs #2737 --- lib/stif/reflex_synchronization.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/stif/reflex_synchronization.rb') 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! -- cgit v1.2.3