wip statistiko animation
This commit is contained in:
1 parent
02e3f53ba4
commit
332bdc9985
3 files changed
+205
-200
No files matched your search
@@ -19,6 +19,10 @@ class Grapper
|
||||
{
|
||||
public static function load()
|
||||
{
|
||||
/**
|
||||
* , JSON_PRETTY_PRINT
|
||||
* to fromat json
|
||||
*/
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
|
||||
$force = Nuh::$options['ff'] ?? 0;
|
||||
@@ -132,7 +136,7 @@ class Grapper
|
||||
* EVENT event
|
||||
*********************************/
|
||||
|
||||
File::put($folder . '/event.json', json_encode($event, JSON_PRETTY_PRINT));
|
||||
File::put($folder . '/event.json', json_encode($event));
|
||||
|
||||
/*********************************
|
||||
* EVENT statistics
|
||||
@@ -150,7 +154,7 @@ class Grapper
|
||||
|
||||
$data['id'] = $event_id;
|
||||
|
||||
File::put($folder . '/statistics.json', json_encode($data, JSON_PRETTY_PRINT));
|
||||
File::put($folder . '/statistics.json', json_encode($data));
|
||||
|
||||
$grapped->got_statistics = 1;
|
||||
// }
|
||||
@@ -169,7 +173,7 @@ class Grapper
|
||||
|
||||
$data['id'] = $event_id;
|
||||
|
||||
File::put($folder . '/lineups.json', json_encode($data, JSON_PRETTY_PRINT));
|
||||
File::put($folder . '/lineups.json', json_encode($data));
|
||||
|
||||
$grapped->got_lineups = 1;
|
||||
// }
|
||||
@@ -188,7 +192,7 @@ class Grapper
|
||||
|
||||
$data['id'] = $event_id;
|
||||
|
||||
File::put($folder . '/odds.json', json_encode($data, JSON_PRETTY_PRINT));
|
||||
File::put($folder . '/odds.json', json_encode($data));
|
||||
|
||||
$grapped->got_odds = 1;
|
||||
// }
|
||||
@@ -207,7 +211,7 @@ class Grapper
|
||||
|
||||
$data['id'] = $event_id;
|
||||
|
||||
File::put($folder . '/incidents.json', json_encode($data, JSON_PRETTY_PRINT));
|
||||
File::put($folder . '/incidents.json', json_encode($data));
|
||||
|
||||
$grapped->got_incidents = 1;
|
||||
// }
|
||||
|
||||
Reference in new issue
Block a user