aboutsummaryrefslogtreecommitdiff
path: root/cmd/score.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 23:32:08 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 23:32:08 +0530
commitbeacbdf5974ab4eadc2ab651ed59b7bd2dcc6e02 (patch)
tree16815b6ea47ed0c812749a528e863bef787d9d8c /cmd/score.go
parentfa851728d9b327f83f607b3e70f06d2404c4dbd1 (diff)
formatted conformation message and fixed extra whitespace showing on invalid input
Diffstat (limited to 'cmd/score.go')
-rw-r--r--cmd/score.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/score.go b/cmd/score.go
index cca3364..d22f4d2 100644
--- a/cmd/score.go
+++ b/cmd/score.go
@@ -105,14 +105,14 @@ func setMangaScore(scoreInput int, searchInput string) {
currentScore := selectedManga.MyListStatus.Score
if queryOnlyMode {
- fmt.Printf("\x1b[35m%s\x1b[0m :: Score -> %s\n", manga.Title, ui.FormatScore(currentScore))
+ fmt.Printf("\x1b[35m%s\x1b[0m Score :: %s\n", manga.Title, ui.FormatScore(currentScore))
os.Exit(0)
}
if scoreInput < 0 {
ui.ScoreInput(manga.Id, selectedManga.MyListStatus.Score, manga.Title, true)
} else {
- resp := mal.SetAnimeScore(manga.Id, scoreInput)
+ resp := mal.SetMangaScore(manga.Id, scoreInput)
fmt.Println(ui.CreateScoreUpdateConfirmationMessage(manga.Title, currentScore, resp.Score))
}
}