Skip to content

Commit

Permalink
use "world" recent flights url
Browse files Browse the repository at this point in the history
to also collect those which don't enter the current year xcontest
  • Loading branch information
emilburzo committed Aug 11, 2023
1 parent 4cb4687 commit b24ebc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/emilburzo/service/constants.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.emilburzo.service

const val FLIGHTS_RECENT_URL = "https://www.xcontest.org/romania/zboruri/" // todo env
const val FLIGHTS_RECENT_URL = "https://www.xcontest.org/world/en/flights/#filter[country]=RO@filter[country]=RO@flights[sort]=reg" // todo env
2 changes: 1 addition & 1 deletion src/main/kotlin/com/emilburzo/service/mapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b24ebc6

Please sign in to comment.