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 181e6042 authored by Volker Krause's avatar Volker Krause

Silence some debug output

parent 743c4b9f
......@@ -88,7 +88,6 @@ function main(text) {
idx += arrivalDate.index + arrivalDate[0].length;
var departureDate = text.substr(idx).match(regExMap[locale]['departureDate']);
console.log(departureDate);
if (!departureDate)
return null;
res.checkoutTime = JsonLd.toDateTime(departureDate[1] + " " + departureDate[2], regExMap[locale]['dateFormat'], locale);
......
......@@ -179,7 +179,6 @@ function parsePdf(pdf) {
}
}
console.log(barcode, uic918ticket, !barcode);
var reservations = parseTicket(pdf.text, uic918ticket);
for (var i = 0; i < reservations.length && barcode; ++i) {
reservations[i].reservedTicket.ticketToken = "aztecbin:" + Barcode.toBase64(barcode);
......
......@@ -34,7 +34,6 @@ function parseHtmlBooking(doc) {
// determine locale
var introElem = doc.eval("//table[@class=\"email-wrapper\"]/tr[2]/td");
console.log(introElem[0].content, introElem[0].name);
var locale = "";
for (var l in localeMap) {
var m = introElem[0].content.match(localeMap[l]['localeMatch']);
......@@ -43,7 +42,6 @@ function parseHtmlBooking(doc) {
break;
}
}
console.debug("Detected locale:", locale);
var elems = doc.eval("//table[@class=\"ej-flight\"]");
for (var i = 0; i < elems.length; ++i) {
......@@ -68,7 +66,6 @@ function parseHtmlBooking(doc) {
row = row.nextSibling;
var timeCell = row.eval(".//table/tr/td");
console.debug(timeCell[1].content, timeCell[3].content);
res.reservationFor.departureTime = JsonLd.toDateTime(timeCell[1].content.match(/\W* (.*)/)[1], "dd MMM HH:mm", locale);
res.reservationFor.arrivalTime = JsonLd.toDateTime(timeCell[3].content.match(/\W* (.*)/)[1], "dd MMM HH:mm", locale);
......
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