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

Normalize flight numbers during post-processing

parent 4531d3ae
......@@ -41,6 +41,7 @@ Flight FlightPostProcessor::processFlight(Flight flight)
flight = ExtractorUtil::extractTerminals(flight);
flight.setDepartureTerminal(flight.departureTerminal().simplified());
flight.setArrivalTerminal(flight.arrivalTerminal().simplified());
flight.setFlightNumber(flight.flightNumber().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) {
......
Supports Markdown
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