diff options
| author | horus | 2020-09-18 17:44:49 +0200 |
|---|---|---|
| committer | horus | 2020-09-18 17:44:49 +0200 |
| commit | af395329437d8e314737dcfb18963810fabe3d8a (patch) | |
| tree | 83f12661e8b37cb9b3516134684e1c3cd59ef830 /app | |
| parent | 0c521f4907ee74cda8d4b6810a5ccb21c175f857 (diff) | |
| download | senpai-af395329437d8e314737dcfb18963810fabe3d8a.tar.gz | |
misc bugfix
Diffstat (limited to 'app')
| -rw-r--r-- | app/Console/Kernel.php | 2 | ||||
| -rw-r--r-- | 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); } } |
