Archived
Fixed a bug in HelperFunctions#assignRanking
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user