Add colour to score

This commit is contained in:
Dave Gallant
2022-12-23 21:43:04 -05:00
parent e69d0f632e
commit dd7e73b497
3 changed files with 17 additions and 2 deletions

View File

@@ -100,7 +100,6 @@ func (a *App) refreshTopics() {
func (a *App) updateScores(t []Topic) []Topic {
for i := range t {
t[i].Score = t[i].Votes.Up - t[i].Votes.Down
log.Debug().Msgf("Added score: %d", t[i].Score)
}
return t
}