diff options
| author | Michel Etienne | 2014-11-21 08:51:17 +0100 |
|---|---|---|
| committer | Michel Etienne | 2014-11-21 08:51:17 +0100 |
| commit | 23ca6c41625707e73f54582ddff979af58a24a72 (patch) | |
| tree | bdff5b73bd9ee03137b82f7d4a1423910226e4a5 /app/exporters | |
| parent | 705bbe7e92fa7d83c5cdf11e5486ab40d868583b (diff) | |
| parent | b49f65edd92e52ec630d936af1d4927f42a75862 (diff) | |
| download | chouette-core-23ca6c41625707e73f54582ddff979af58a24a72.tar.bz2 | |
Merge branch 'V2_5' of github.com:afimb/chouette2 into V2_5
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 = "" |
