From 77dc48fcf20ab9fa185d3cb5009c2e344311fe9f Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 18 Sep 2024 14:10:49 -0400 Subject: [PATCH] removed unnecessary println and console.log --- MALFunctions.go | 2 -- SimklFunctions.go | 1 - frontend/src/App.svelte | 1 - 3 files changed, 4 deletions(-) diff --git a/MALFunctions.go b/MALFunctions.go index 818aabe..5c91f0d 100644 --- a/MALFunctions.go +++ b/MALFunctions.go @@ -18,7 +18,6 @@ func MALHelper(method string, malUrl string, body url.Values) (json.RawMessage, req.Header.Add("Content-Type", "application/x-www-form-urlencoded") req.Header.Add("Authorization", "Bearer "+myAnimeListJwt.AccessToken) - fmt.Println(myAnimeListJwt.AccessToken) resp, err := client.Do(req) @@ -92,7 +91,6 @@ func (a *App) MyAnimeListUpdate(anime MALAnime, update MALUploadStatus) MalListS } func (a *App) GetMyAnimeListAnime(id int) MALAnime { - fmt.Println(id) malUrl := "https://api.myanimelist.net/v2/anime/" + strconv.Itoa(id) + "?fields=id,title,main_picture,alternative_titles,start_date,end_date,synopsis,mean,rank,popularity,num_list_users,num_scoring_users,nsfw,genres,created_at,updated_at,media_type,status,my_list_status,num_episodes,start_season,broadcast,source,average_episode_duration,rating,pictures,background,related_anime,recommendations,studios,statistics" respBody, respStatus := MALHelper("GET", malUrl, nil) var malAnime MALAnime diff --git a/SimklFunctions.go b/SimklFunctions.go index d25358d..1759ab6 100644 --- a/SimklFunctions.go +++ b/SimklFunctions.go @@ -257,7 +257,6 @@ func (a *App) SimklSearch(aniListAnime MediaList) SimklAnime { err := json.Unmarshal(respBody, &anime) if len(anime) == 0 { - fmt.Println("reached search by mal") url = "https://api.simkl.com/search/id?mal=" + strconv.Itoa(aniListAnime.Media.IDMal) respBody = SimklHelper("GET", url, nil) fmt.Println(string(respBody)) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 784a970..3a9c096 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -30,7 +30,6 @@ conditions: [ async () => await CheckIfAniListLoggedIn(), async (detail) => { - console.log("reached condition") aniListAnime.update(value => { value = AniListGetSingleAnimeDefaultData return value