wip
This commit is contained in:
1 parent
320079c2a1
commit
99b657eb3a
12 files changed
+137
-187
No files matched your search
@@ -8,8 +8,11 @@ class AlarmLoadOdds
|
||||
{
|
||||
public static function get($event_id, $table, $oddnames)
|
||||
{
|
||||
|
||||
$res = DB::table($table)->where('flags', 1)->where('event_id', $event_id)->get();
|
||||
if (in_array($table, ['odds_points', 'odds_points_ht', 'odds_points_q1', 'odds_totals', 'odds_totals_ht', 'odds_totals_q1'])) {
|
||||
$res = DB::table($table)->where('active_spread', 1)->where('flags', 1)->where('event_id', $event_id)->get();
|
||||
} else {
|
||||
$res = DB::table($table)->where('flags', 1)->where('event_id', $event_id)->get();
|
||||
}
|
||||
|
||||
$arr = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user