Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit fdd07e37 authored by Volker Krause's avatar Volker Krause

Don't return a partial result if we didn't find something

This would override the generic extractor, which does get something out of
boarding passes even if the custom extractor failed to do so.
parent 15bb007d
......@@ -91,6 +91,8 @@ function extractInformation(page) {
if (lastFlight) {
res.reservationFor.departureTime = JsonLd.toDateTime(lastFlight.daymonth + " " + lastFlight.year + " " + lastFlight.departureTime, "dd MMM yyyy hh:mm", "en");
res.reservationFor.boardingTime = JsonLd.toDateTime(lastFlight.daymonth + " " + lastFlight.year + " " + lastFlight.boardingTime , "dd MMM yyyy hh:mm", "en");
} else {
return null;
}
return res;
......
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