diff options
| author | Zakaria BOUZIANE | 2014-11-21 08:49:34 +0100 |
|---|---|---|
| committer | Zakaria BOUZIANE | 2014-11-21 08:49:34 +0100 |
| commit | b49f65edd92e52ec630d936af1d4927f42a75862 (patch) | |
| tree | 96f70160ec158227873176ef127f45c666f89899 /app/exporters | |
| parent | c7b7ba19222701461cfb58b3bf325a9a5d3e3fe8 (diff) | |
| download | chouette-core-b49f65edd92e52ec630d936af1d4927f42a75862.tar.bz2 | |
Timetables int_day_types set to 0 if undefined
Diffstat (limited to 'app/exporters')
| -rw-r--r-- | app/exporters/chouette/hub/vehicle_journey_exporter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/exporters/chouette/hub/vehicle_journey_exporter.rb b/app/exporters/chouette/hub/vehicle_journey_exporter.rb index e1d7fce58..fb854566b 100644 --- a/app/exporters/chouette/hub/vehicle_journey_exporter.rb +++ b/app/exporters/chouette/hub/vehicle_journey_exporter.rb @@ -24,7 +24,8 @@ class Chouette::Hub::VehicleJourneyExporter @departure_time_sec = departure_time.sec + ( departure_time.min + departure_time.hour * 60 ) * 60 @arrival_time_sec = arrival_time.sec + ( arrival_time.min + arrival_time.hour * 60 ) * 60 @validity = 0 - @vehicle_journey.time_tables.map(&:int_day_types).each { |v| @validity |= v } + #@vehicle_journey.time_tables.map(&:int_day_types).each { |v| @validity |= v } + @vehicle_journey.time_tables.each { |t| @validity |= t.int_day_types if t.int_day_types } periods = Chouette::TimeTable.where( :id => @vehicle_journey.time_tables.map(&:id) ).map(&:objectid) @periods = "" |
