Skip to content

Commit

Permalink
feat(sak): better check if foreigners
Browse files Browse the repository at this point in the history
  • Loading branch information
1grzyb1 committed Apr 4, 2024
1 parent c1a79d3 commit af69696
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/kotlin/odyseja/odysejapka/timetable/Performance.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ data class Performance (
}

fun isForeigner(): Boolean {
return city.lowercase() in listOf("spain", "china")
for (foreigner in listOf("spain", "china")) {
if (city.lowercase().contains(foreigner) || team.lowercase().contains(foreigner)) {
return true
}
}
return false
}
}

0 comments on commit af69696

Please sign in to comment.