fossil 0.4.10 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/fossil.gemspec +1 -1
- data/lib/models/trip_leg.rb +4 -4
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.12
|
data/fossil.gemspec
CHANGED
data/lib/models/trip_leg.rb
CHANGED
|
@@ -734,11 +734,11 @@ class TripLeg < Sequel::Model(:'trip legs')
|
|
|
734
734
|
((verified? or flight_time_actual > 0) and cancel_code == 0)
|
|
735
735
|
end
|
|
736
736
|
|
|
737
|
-
#
|
|
738
|
-
|
|
737
|
+
# Flight explorer is continually updating the land time for a flight, so its really
|
|
738
|
+
# not possible to tell if a flight is completed by checking that the arrival date
|
|
739
|
+
# or time is no longer 0/1440.
|
|
739
740
|
def is_completed_leg?
|
|
740
|
-
|
|
741
|
-
is_flown? and (land_time_act_gmt!=1440 and land_time_act_gmt!=0)
|
|
741
|
+
(verified? or Time.now.utc > actual_arrival_date_time_gmt) and cancel_code == 0
|
|
742
742
|
end
|
|
743
743
|
|
|
744
744
|
def departed?
|