summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhorus2020-04-19 18:30:54 +0200
committerhorus2020-04-19 18:30:54 +0200
commita1f147cf4f6b5f4f77afdf245434fa0f4429228a (patch)
tree29e3743fd8bdb4288e0ee2bd638fb30804bb0f3c /app
parent41d56e98417055dffcb45c44b5d68db6b8917ef2 (diff)
downloadsenpai-a1f147cf4f6b5f4f77afdf245434fa0f4429228a.tar.gz
Unimportant stuff for testing purposes.
Diffstat (limited to 'app')
-rw-r--r--app/Console/Kernel.php10
-rw-r--r--app/Http/Controllers/IndexController.php2
2 files changed, 11 insertions, 1 deletions
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index 8c12616..3bd744e 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -9,6 +9,8 @@ use App\Libraries\AnimeSeason;
use App\Libraries\Helper;
use App\Libraries\Background;
+use App\Anime;
+
class Kernel extends ConsoleKernel
{
/**
@@ -65,6 +67,14 @@ class Kernel extends ConsoleKernel
$background->saveEnhancementForAll();
})->weeklyOn(1, '15:30');
#})->everyMinute();
+
+/*
+ $schedule->call( function(){
+ $background = new Background();
+ $anime = Anime::where('mal_id', 40591)->get()->first();
+ $background->saveAiring( $anime );
+ })->everyMinute();
+*/
}
/**
diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php
index 3704afe..d9e792a 100644
--- a/app/Http/Controllers/IndexController.php
+++ b/app/Http/Controllers/IndexController.php
@@ -25,7 +25,7 @@ class IndexController extends Controller {
#public function iCal(Request $request) {
public function iCal($username) {
- if ( ! Cache::has('schedule_' . $username)) {
+ if ( ! Cache::has('xschedule_' . $username)) {
$helper = new Helper();
$schedule = $helper->getCalendar($username);
Cache::put('schedule_' . $username, $schedule, 360);