From af395329437d8e314737dcfb18963810fabe3d8a Mon Sep 17 00:00:00 2001 From: horus Date: Fri, 18 Sep 2020 17:44:49 +0200 Subject: misc bugfix --- app/Console/Kernel.php | 2 +- app/Libraries/Background.php | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index b120ddc..9c4f298 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -72,7 +72,7 @@ class Kernel extends ConsoleKernel $background->saveTopAnimeByPopularity(); echo"saveEnhancementForAll()\n"; $background->saveEnhancementForAll(); - echo "addSeasonToAllAnime()\n" + echo "addSeasonToAllAnime()\n"; $background->addSeasonToAllAnime(); })->weeklyOn(1, '15:30')->name('saveTopAnime')->withoutOverlapping(); #})->everyMinute(); diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php index 50efe9b..fbdaa1f 100644 --- a/app/Libraries/Background.php +++ b/app/Libraries/Background.php @@ -211,7 +211,7 @@ class Background { $update["title_pref"] = $enhancement->title->userPreferred; } - echo "Updating " . $anime->title_pref . " (" . $anime->mal_id . ")\n"; + #echo "Updating " . $anime->title_pref . " (" . $anime->mal_id . ")\n"; DB::table('anime') ->where('mal_id', $anime->mal_id) ->update( $update ); @@ -316,8 +316,6 @@ class Background { continue; } - echo "Going to update " . $animeInfo->getTitle() . " ( " . $anime->mal_id . ")\n"; - if ( is_null( $animeInfo->getPremiered() ) ) { $tmp_date = getSeasonFromDate( $animeInfo->getAired()->getFrom() ); @@ -335,9 +333,6 @@ class Background { 'season_year' => $season_year, ]); - echo "Updated " . $animeInfo->getTitle() . " to " . $season_name . " " . $season_year . ".\n"; - - sleep(5); } } -- cgit v1.2.3