summaryrefslogtreecommitdiff
path: root/app/Console
diff options
context:
space:
mode:
authorhorus2020-09-16 11:13:53 +0200
committerhorus2020-09-16 11:13:53 +0200
commita5ff13269db053896b604fc29181d60e208d0463 (patch)
treea10820fcb0fba116ab0105ef1538d9a6f7069f4b /app/Console
parent98736ba280573b66eb3d5bf026ed943dc8ceb663 (diff)
downloadsenpai-a5ff13269db053896b604fc29181d60e208d0463.tar.gz
Major improvement.
Diffstat (limited to 'app/Console')
-rw-r--r--app/Console/Kernel.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index 7663b67..dc671fd 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -68,19 +68,22 @@ class Kernel extends ConsoleKernel
$background = new Background();
echo "saveTopAnime()";
$background->saveTopAnime();
+ echo "saveTopAnimeByPopularity()";
+ $background->saveTopAnimeByPopularity();
echo"saveEnhancementForAll()\n";
$background->saveEnhancementForAll();
- })->weeklyOn(1, '15:30');
+ })->weeklyOn(1, '15:30')->name('saveTopAnime')->withoutOverlapping();
#})->everyMinute();
/*
$schedule->call( function(){
$background = new Background();
#$background->checkIfIsAiring();
- $background->saveSeason();
+ #$background->saveSeason();
+ $background->saveEnhancementForAll();
#$anime = Anime::where('mal_id', 40591)->get()->first();
#$background->saveAiring( $anime );
- })->everyMinute();
+ })->everyMinute()->name("enhance")->withoutOverlapping();
#})->twiceDaily(9, 23);
*/
@@ -88,10 +91,12 @@ class Kernel extends ConsoleKernel
$schedule->call( function(){
$background = new Background();
#$background->checkIfIsAiring();
- $background->saveTopAnime();
+ $background->saveTopAnimeByPopularity();
#$anime = Anime::where('mal_id', 40591)->get()->first();
#$background->saveAiring( $anime );
- })->everyMinute()->name('saveTopAnime2')->withoutOverlapping();
+ #})->everyMinute()->name('saveTopAnime2')->withoutOverlapping();
+ })->dailyAt('3:00')->name('saveTopAnimeByPopularity')->withoutOverlapping();
+ #})->everyMinute()->name('saveTopAnimeByPopularity2')->withoutOverlapping();
*/
}