From fff3dadabc321871e6819392efc605c6dffe2e69 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 15 Aug 2023 10:57:27 +0530 Subject: migrated from MAL2Go to mg package --- ui/score.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'ui/score.go') 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 { -- cgit v1.2.3