aboutsummaryrefslogtreecommitdiff
path: root/ui/score.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 10:57:27 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 10:57:27 +0530
commitfff3dadabc321871e6819392efc605c6dffe2e69 (patch)
tree25aceed23b73b2ad975a06d73fad091d0886a2a6 /ui/score.go
parenta44d6eb2fdddc75983c735e1a0fa744014db9593 (diff)
migrated from MAL2Go to mg package
Diffstat (limited to 'ui/score.go')
-rw-r--r--ui/score.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/score.go b/ui/score.go
index c0b4fcb..afa40ca 100644
--- a/ui/score.go
+++ b/ui/score.go
@@ -23,10 +23,9 @@ import (
"errors"
"fmt"
"os"
- "github.com/MikunoNaka/macli/mal"
- "github.com/MikunoNaka/macli/util"
- m "github.com/MikunoNaka/MAL2Go/v4/manga"
- a "github.com/MikunoNaka/MAL2Go/v4/anime"
+ "vidhukant.com/macli/mal"
+ "vidhukant.com/macli/util"
+ "vidhukant.com/mg"
p "github.com/manifoldco/promptui"
)
@@ -72,7 +71,7 @@ func CreateScoreUpdateConfirmationMessage(title string, score, prevScore int) st
return fmt.Sprintf("\x1b[35m%s\x1b[0m Score :: %s", title, FormatScore(score))
}
-func AnimeScoreInput(anime a.Anime) {
+func AnimeScoreInput(anime mg.Anime) {
currentScore := anime.MyListStatus.Score
validate := func(input string) error {
i, err := strconv.ParseFloat(input, 64)
@@ -111,7 +110,7 @@ func AnimeScoreInput(anime a.Anime) {
fmt.Println(CreateScoreUpdateConfirmationMessage(anime.Title, resp.Score ,currentScore))
}
-func MangaScoreInput(manga m.Manga) {
+func MangaScoreInput(manga mg.Manga) {
currentScore := manga.MyListStatus.Score
validate := func(input string) error {