serializer not needed
This commit is contained in:
		| @@ -1,6 +1,5 @@ | |||||||
| #!/usr/bin/env python | #!/usr/bin/env python | ||||||
|  |  | ||||||
| import json |  | ||||||
| import pytz | import pytz | ||||||
| import sys | import sys | ||||||
|  |  | ||||||
| @@ -84,13 +83,6 @@ class Inbound: | |||||||
|                     self.PlannedRunway = runway |                     self.PlannedRunway = runway | ||||||
|                     break |                     break | ||||||
|  |  | ||||||
|     def toJSON(self): |  | ||||||
|         pta = str(self.PlannedArrivalTime) |  | ||||||
|         delimiter = pta.find('.') |  | ||||||
|         if -1 == delimiter: |  | ||||||
|             delimiter = pta.find('+') |  | ||||||
|         return json.dumps({ 'callsign' : self.Callsign, 'runway' : self.PlannedRunway.Name, 'pta' : pta[0:delimiter] }, ensure_ascii=True) |  | ||||||
|  |  | ||||||
|     def arrivalEstimation(self, runway : Runway, star : ArrivalRoute, weather : WeatherModel): |     def arrivalEstimation(self, runway : Runway, star : ArrivalRoute, weather : WeatherModel): | ||||||
|         # calculate remaining trackmiles |         # calculate remaining trackmiles | ||||||
|         trackmiles = self.Report.distanceToIAF |         trackmiles = self.Report.distanceToIAF | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user