modifications details

This commit is contained in:
salam committed 2026-07-28 21:37:18 +02:00
1 parent c143dcf727
commit c1892e86aa
21 files changed
+99 -108

No files matched your search

@@ -14,7 +14,7 @@ class PlayerPerSeason
{
$debug = Nuh::$options['d'] ?? 0;
$res = StatistikoDetail::query()->select('tm_player_id', 'txodds_id')->get();
$res = StatistikoDetail::query()->select('ss_player_id', 'txodds_id')->get();
if ($debug) {
Notice::note('process ' . $res->count() . " player", 'bb');
@@ -24,7 +24,7 @@ class PlayerPerSeason
$collection = [];
$res2 = StatistikoPlayer::with('event')->where('tm_player_id', $val->tm_player_id)->get();
$res2 = StatistikoPlayer::with('event')->where('ss_player_id', $val->ss_player_id)->get();
foreach ($res2 as $val2) {
@@ -46,10 +46,10 @@ class PlayerPerSeason
}
foreach ($collection as $season => $row) {
if ($val->txodds_id && $val->tm_player_id) {
if ($val->txodds_id && $val->ss_player_id) {
SofaScorePlayerPerSeason::updateOrCreate(
[
'tm_player_id' => $val->tm_player_id,
'ss_player_id' => $val->ss_player_id,
'tx_team_id' => $val->txodds_id,
'season' => $season
],