fossil 0.3.46 → 0.3.47
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 +15 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.47
|
data/fossil.gemspec
CHANGED
data/lib/models/trip_leg.rb
CHANGED
@@ -728,7 +728,21 @@ class TripLeg < Sequel::Model(:'trip legs')
|
|
728
728
|
end.compact.uniq.join(' : ')
|
729
729
|
end
|
730
730
|
|
731
|
-
|
731
|
+
def leg_status
|
732
|
+
return "CANC" if cancel_code > 0
|
733
|
+
return "VERI" if verify_date > 0
|
734
|
+
return "FLOG" if status != 1 and flight_time_actual > 0
|
735
|
+
case status
|
736
|
+
when 0 then "SCHED"
|
737
|
+
when 1 then "VERI"
|
738
|
+
when 10 then "CANC"
|
739
|
+
when 23 then "CANC"
|
740
|
+
when 21 then "MAINT"
|
741
|
+
when 20 then "SCHED" #really is "RESVD"
|
742
|
+
else "[#{status}]";
|
743
|
+
end
|
744
|
+
end
|
745
|
+
|
732
746
|
# This method guarantees an icao for a view that needs one. If there is an icao, use it, otherwise make
|
733
747
|
# it from the prefix and airport_id .. which works as an icao, but beware, because these put together
|
734
748
|
# icao's that you make are valid icao codes, but you can't search the airport based it, since these
|