wip
This commit is contained in:
1 parent
4f3375f5b3
commit
9686d3b173
3 files changed
+7
-71
No files matched your search
@@ -257,6 +257,7 @@ class PlayerPropsDrop extends Widget
|
||||
}
|
||||
|
||||
$copystring = '';
|
||||
|
||||
foreach ($this->calculationVariables as $row) {
|
||||
if ($copystring == '') {
|
||||
$keys = array_keys($row);
|
||||
@@ -381,8 +382,6 @@ class PlayerPropsDrop extends Widget
|
||||
|
||||
$results = [];
|
||||
|
||||
$this->calculationVariables = [];
|
||||
|
||||
foreach ($player_totals as $val) {
|
||||
if ($val->details && $val->details->is_active) {
|
||||
|
||||
@@ -499,9 +498,6 @@ class PlayerPropsDrop extends Widget
|
||||
// Considerare la ATR calcolata allo Step 1 (colonna I della Tabella)
|
||||
// Aspettativa per Player: AP = AT * ATR / TOT AT
|
||||
$results[] = $tmp;
|
||||
|
||||
// for dev copy
|
||||
$this->calculationVariables[] = $tmp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,6 +514,8 @@ class PlayerPropsDrop extends Widget
|
||||
}
|
||||
}
|
||||
|
||||
$this->calculationVariables = $results;
|
||||
|
||||
foreach ($this->players as $k => $record) {
|
||||
foreach ($results as $key => $result) {
|
||||
if ((int) $record['id'] == (int) $result['id']) {
|
||||
|
||||
Reference in new issue
Block a user