Changeset 1034:4836f52b49cd for src/mlx/flight.py
- Timestamp:
- 03/14/22 09:58:58 (2 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/flight.py
r1033 r1034 54 54 55 55 @staticmethod 56 def isTimeDifferenceTooMuch(scheduledTime, realTimestamp): 56 def isTimeDifferenceTooMuch(scheduledTime, realTimestamp, 57 earlyOnlyWarning = False): 57 58 """Determine if the given real time differs to much from the scheduled 58 59 time. … … 71 72 72 73 return (diff>Flight.TIME_WARNING_DIFFERENCE, 73 diff>Flight.TIME_ERROR_DIFFERENCE)74 False if earlyOnlyWarning else diff>Flight.TIME_ERROR_DIFFERENCE) 74 75 75 76 def __init__(self, logger, gui): … … 385 386 but an error as well.""" 386 387 return self.isTimeDifferenceTooMuch(self.bookedFlight.arrivalTime, 387 self.blockTimeEnd) 388 self.blockTimeEnd, 389 earlyOnlyWarning = True) 388 390 389 391 def disconnected(self):
Note:
See TracChangeset
for help on using the changeset viewer.