This commit is contained in:
salam committed 2026-01-16 08:17:41 +01:00
1 parent 0ea259cc22
commit c1c5d24905
2 files changed
+12 -9

No files matched your search

@@ -33,7 +33,7 @@ class Bet365
$bookmaker_id = 126;
if ($single) {
$events = Event::where('id', Nuh::$options['id'])->select('id', 'sport_id', 'bet365_id', 'starttime')->get();
$events = Event::where('id', Nuh::$options['id'])->where('bet365_id', '>', 0)->select('id', 'sport_id', 'bet365_id', 'starttime')->get();
} elseif ($today) {
$events = Event::where('bet365_id', '>', 0)->where('starttime', '>', Carbon::now()->toDateTimeString())->where('starttime', '<', Carbon::now()->addDay()->toDateTimeString())->select('id', 'sport_id', 'bet365_id', 'starttime')->get();
} elseif ($week) {
@@ -42,7 +42,9 @@ class Bet365
// all
$events = Event::where('bet365_id', '>', 0)->where('starttime', '>', Carbon::now()->toDateTimeString())->select('id', 'sport_id', 'bet365_id', 'starttime')->get();
}
if ($events ?? null && $debug) {
Notice::note('No events', 'r');
}
foreach ($events as $key => $event) {
if ($debug) {