Commit faa9c05e authored by Volker Krause's avatar Volker Krause
Browse files

Normalize airport terminal strings

parent 754ac741
......@@ -56,6 +56,8 @@ Flight FlightPostProcessor::processFlight(Flight flight)
flight.setDepartureTime(processFlightTime(flight.departureTime(), flight, m_departureCodes));
flight.setArrivalTime(processFlightTime(flight.arrivalTime(), flight, m_arrivalCodes));
flight = ExtractorUtil::extractTerminals(flight);
flight.setDepartureTerminal(flight.departureTerminal().simplified());
flight.setArrivalTerminal(flight.arrivalTerminal().simplified());
// arrival less than a day before departure is an indication of the extractor failing to detect day rollover
if (duration < 0 && duration > -3600*24) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment