diff --git a/src/main/kotlin/com/emilburzo/service/constants.kt b/src/main/kotlin/com/emilburzo/service/constants.kt index 685d1bf..0978033 100644 --- a/src/main/kotlin/com/emilburzo/service/constants.kt +++ b/src/main/kotlin/com/emilburzo/service/constants.kt @@ -1,3 +1,3 @@ package com.emilburzo.service -const val FLIGHTS_RECENT_URL = "https://www.xcontest.org/romania/zboruri/" // todo env \ No newline at end of file +const val FLIGHTS_RECENT_URL = "https://www.xcontest.org/world/en/flights/#filter[country]=RO@filter[country]=RO@flights[sort]=reg" // todo env \ No newline at end of file diff --git a/src/main/kotlin/com/emilburzo/service/mapper.kt b/src/main/kotlin/com/emilburzo/service/mapper.kt index c09fa5e..8679e1e 100644 --- a/src/main/kotlin/com/emilburzo/service/mapper.kt +++ b/src/main/kotlin/com/emilburzo/service/mapper.kt @@ -106,7 +106,7 @@ fun mapTakeoff(element: Element): Takeoff { } fun mapPilot(element: Element): Pilot { - val a = element.child(0) + val a = element.child(1) val url = a.attr("href") val name = a.child(0).text() return Pilot(