wip
This commit is contained in:
1 parent
d793f0b844
commit
326451aa7f
1 file changed
+4
-5
@@ -423,9 +423,9 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
|||||||
foreach ($this->calculationVariables as $row) {
|
foreach ($this->calculationVariables as $row) {
|
||||||
if ($copystring == '') {
|
if ($copystring == '') {
|
||||||
$keys = array_keys($row);
|
$keys = array_keys($row);
|
||||||
$copystring .= implode("\t", $keys)."\n";
|
$copystring .= implode(";", $keys) . "\n";
|
||||||
}
|
}
|
||||||
$copystring .= implode("\t", $row)."\n";
|
$copystring .= implode(";", $row) . "\n";
|
||||||
}
|
}
|
||||||
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
||||||
|
|
||||||
@@ -441,7 +441,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$header = ['name', 'foot', 'events', 'average min', 'position', 'on field', 'gls', 'fls', 'ofs', 'snt', 'tsh', 'crd'];
|
$header = ['name', 'foot', 'events', 'average min', 'position', 'on field', 'gls', 'fls', 'ofs', 'snt', 'tsh', 'crd'];
|
||||||
$copystring = implode("\t", $header)."\n";
|
$copystring = implode(";", $header) . "\n";
|
||||||
foreach ($this->sourceRecords as $row) {
|
foreach ($this->sourceRecords as $row) {
|
||||||
$tmp = [];
|
$tmp = [];
|
||||||
$tmp[] = $row['name'];
|
$tmp[] = $row['name'];
|
||||||
@@ -461,7 +461,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
|||||||
$tmp[] = $row['tsh'];
|
$tmp[] = $row['tsh'];
|
||||||
$tmp[] = $row['crd'];
|
$tmp[] = $row['crd'];
|
||||||
|
|
||||||
$copystring .= implode("\t", $tmp)."\n";
|
$copystring .= implode(",", $tmp) . "\n";
|
||||||
}
|
}
|
||||||
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
||||||
|
|
||||||
@@ -611,7 +611,6 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
|||||||
$asp_gioco = $val->shots_on_target / $somma_minuti * 90;
|
$asp_gioco = $val->shots_on_target / $somma_minuti * 90;
|
||||||
$tmp['asp_teorica_shots_on_target'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
$tmp['asp_teorica_shots_on_target'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user