tAdd comments for future me - scoreboard - Interactive scoreboard for CTF-like games
(HTM) git clone git://git.z3bra.org/scoreboard.git
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 5c9d5d6fc331ae6b72ce6ceed2c24444efc45135
(DIR) parent 6af2a93891a9cce705a9cbfc68a4c6eea4a11e39
(HTM) Author: Willy Goiffon <contact@z3bra.org>
Date: Tue, 22 Aug 2023 15:53:01 +0200
Add comments for future me
Diffstat:
M ui.go | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/ui.go b/ui.go
t@@ -26,6 +26,8 @@ func BoardHeader() *tview.TextView {
SetText("[::b] RANK NAME FLAGS SCORE ")
}
+// Return a table filled with scores from the selected range
+// Optionally padded with "placeholder" lines
func RankTable(offset, limit, rank int, fill bool) *tview.Table {
t := tview.NewTable()
players, err := db_ranked_players(cyboard.db, offset, limit)