fossil 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fossil.gemspec +1 -1
- data/lib/models/trip_leg.rb +5 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.10
|
data/fossil.gemspec
CHANGED
data/lib/models/trip_leg.rb
CHANGED
@@ -634,6 +634,7 @@ class TripLeg < Sequel::Model(:'trip legs')
|
|
634
634
|
delegate :lead_pax, :to => :trip
|
635
635
|
|
636
636
|
# Column views
|
637
|
+
# dept_date_act_gmt, dept_time_act_gmt are the values for when flight starts rolling to runway.
|
637
638
|
column_view :dept_date_act_gmt, :date, :actual_departure_date_gmt
|
638
639
|
column_view :dept_time_act_gmt, :time, :actual_departure_time_gmt
|
639
640
|
column_def_datetime :actual_departure_date_time_gmt, :'dept date act gmt', :'dept time act gmt'
|
@@ -733,12 +734,15 @@ class TripLeg < Sequel::Model(:'trip legs')
|
|
733
734
|
((verified? or flight_time_actual > 0) and cancel_code == 0)
|
734
735
|
end
|
735
736
|
|
737
|
+
# flight explorer is continually updating the land time for a flight, so
|
738
|
+
|
736
739
|
def is_completed_leg?
|
740
|
+
|
737
741
|
is_flown? and (land_time_act_gmt!=1440 and land_time_act_gmt!=0)
|
738
742
|
end
|
739
743
|
|
740
744
|
def departed?
|
741
|
-
|
745
|
+
dept_date_act_gmt!=0
|
742
746
|
end
|
743
747
|
|
744
748
|
def delayed?
|