mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-06 07:13:39 +00:00
Add colour to score
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user