Skip to content

Commit

Permalink
fix column type and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkid committed Feb 8, 2024
1 parent fab2b57 commit e80e52c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ The latest release can always be found here https://github.com/bitkid/itsf-ranki
### Features

- downloads the ranking for the chosen tour from the ITSF page (top 2000 player in every category)
- you can look at the rankings and copy them in an excel friendly way
- you can look at the rankings and copy them in an Excel friendly way
- you can search by ITSF license number
- you can search for player names (phonetic, string part matching)
- you can upload text files (for singles 1 player per line for doubles 2 players per line separated by `;`) and the app tries to match it with the current ranking
- you can search for missing players or players with multiple matches and complete the list by providing points manually
- columns can be sorted by clicking on them, which gives you a seeding

### Support

There is no support whatsoever. You can write issues and if i have time i might fix them. But i always accept PRs!
There is no support whatsoever. You can write issues and if I have time I might fix them. But I always accept PRs!

### Development

Expand Down
10 changes: 8 additions & 2 deletions src/main/kotlin/com/bitkid/itsfranking/ui/ResultTableModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ open class ResultTableModel(columns: List<String>, private val editable: Boolean
}

override fun getColumnClass(c: Int): Class<*> {
val javaClass = getValueAt(0, c).javaClass
return javaClass
// try to find a value for the given column
0.until(rowCount).forEach {
val javaClass = getValueAt(it, c)?.javaClass
if (javaClass != null)
return javaClass
}
// nothing found so just return string
return String::class.java
}
}

Expand Down

0 comments on commit e80e52c

Please sign in to comment.