add --f oprionto run grapper also when disabled
This commit is contained in:
1 parent
6978f8095c
commit
66e064257a
3 files changed
+8
-6
No files matched your search
@@ -18,14 +18,14 @@ class BookmakerOffer
|
||||
public static function init()
|
||||
{
|
||||
|
||||
if (Nuh::$options['f'] == 'bkms') {
|
||||
if (Nuh::$options['fn'] == 'bkms') {
|
||||
self::$collector = [];
|
||||
}
|
||||
}
|
||||
|
||||
public static function collect($bookmaker_id, $sport_id)
|
||||
{
|
||||
if (Nuh::$options['f'] == 'bkms') {
|
||||
if (Nuh::$options['fn'] == 'bkms') {
|
||||
if (! isset(self::$collector[$sport_id])) {
|
||||
self::$collector[$sport_id] = [];
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class BookmakerOffer
|
||||
public static function finalize()
|
||||
{
|
||||
|
||||
if (Nuh::$options['f'] == 'bkms') {
|
||||
if (Nuh::$options['fn'] == 'bkms') {
|
||||
foreach (self::$collector as $sport_id => $bookmaker_ids) {
|
||||
BookmakerSport::where('provider_id', Nuh::$options['provider_id'])
|
||||
->where('sport_id', (int) $sport_id)
|
||||
|
||||
Reference in new issue
Block a user