diff options
| author | horus | 2020-07-30 21:27:51 +0200 |
|---|---|---|
| committer | horus | 2020-07-30 21:27:51 +0200 |
| commit | 98736ba280573b66eb3d5bf026ed943dc8ceb663 (patch) | |
| tree | 7cb510a4307e77c16aa5b76a6b84a6ef2ef281c3 /app/Console/Kernel.php | |
| parent | 14ffa8c832cf69fde25d1ea3641b179ac2d77c03 (diff) | |
| download | senpai-98736ba280573b66eb3d5bf026ed943dc8ceb663.tar.gz | |
Crawls top anime.
Diffstat (limited to 'app/Console/Kernel.php')
| -rw-r--r-- | app/Console/Kernel.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 8582678..7663b67 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -37,7 +37,9 @@ class Kernel extends ConsoleKernel $background = new Background(); $background->saveAnimeStats(); })->everyThirtyMinutes()->name('saveStats')->withoutOverlapping(); - #})->everyMinute(); + #})->everyThirtyMinutes()->name('saveStats5')->withoutOverlapping(); + #})->everyMinute()->name('saveStats3')->withoutOverlapping(); + #})->everyMinute()->name('saveStats5')->withoutOverlapping(); $schedule->call( function(){ $background = new Background(); @@ -64,6 +66,8 @@ class Kernel extends ConsoleKernel $schedule->call( function(){ $background = new Background(); + echo "saveTopAnime()"; + $background->saveTopAnime(); echo"saveEnhancementForAll()\n"; $background->saveEnhancementForAll(); })->weeklyOn(1, '15:30'); @@ -79,6 +83,16 @@ class Kernel extends ConsoleKernel })->everyMinute(); #})->twiceDaily(9, 23); */ + + /* + $schedule->call( function(){ + $background = new Background(); + #$background->checkIfIsAiring(); + $background->saveTopAnime(); + #$anime = Anime::where('mal_id', 40591)->get()->first(); + #$background->saveAiring( $anime ); + })->everyMinute()->name('saveTopAnime2')->withoutOverlapping(); + */ } /** |
