This commit is contained in:
KoenDR06 2025-06-04 13:42:18 +02:00
parent 335464f7d1
commit f8ab085875
2 changed files with 7 additions and 9 deletions

View file

@ -21,11 +21,9 @@ fun main() {
return
}
val offers = getOffers(rooms.map { it.wocasId }).offers.filter { offer ->
offer.adres[0].plaats !in listOf(
"ZWOLLE",
"GRONINGEN",
"TILBURG"
) + if (!config.general.allowZeist) "ZEIST" else ""
offer.adres[0].plaats in listOf(
"UTRECHT",
) + if (config.general.allowZeist) "ZEIST" else ""
}
val coupled = rooms.mapNotNull { room ->
@ -77,7 +75,7 @@ fun main() {
str.append("\n\n")
}
out.writeText(str.toString())
inputFile.writeText(roomsFound.joinToString("\n") + rooms.joinToString("\n") { it.wocasId })
out.writeText(out.readText() + "\n\n" + str.toString())
inputFile.writeText(roomsFound.joinToString("\n") + "\n" + rooms.joinToString("\n") { it.wocasId })
println("${coupled.size} offers found, wrote to $fileName")
}