Fixed a bug in HelperFunctions#assignRanking

This commit is contained in:
Deniz Düzgören
2019-09-25 10:56:58 +02:00
parent 87d4f11cba
commit da49e740ff
@@ -321,7 +321,6 @@ internal object HelperFunctions {
* @return the ranking as an integer
*/
fun assignRanking(group: String, isPSA: Boolean): Int {
val juniors = arrayOf("5", "6", "7", "8", "9")
if (isPSA) return -31
return try {
when {
@@ -334,6 +333,9 @@ internal object HelperFunctions {
}
} catch (e: StringIndexOutOfBoundsException) {
0
} catch (e: Exception) {
e.printStackTrace()
0
}
}