Changeset 205:8b389911b3d9 for src/mlx


Ignore:
Timestamp:
05/28/12 17:26:42 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed flights that include midnight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r204 r205  
    104104        arrivalTime = readline(f)
    105105        self.arrivalTime = BookedFlight.getDateTime(date, arrivalTime)
     106        if self.arrivalTime<self.departureTime:
     107            self.arrivalTime += datetime.timedelta(days = 1)
    106108
    107109        if not readline(f)==".NEXT.":
Note: See TracChangeset for help on using the changeset viewer.