This commit is contained in:
salam committed 2026-07-27 11:01:55 +02:00
1 parent 087b0a2a1a
commit 90b1dfdc4f
6 files changed
+57 -40

No files matched your search

+8 -2
View File
@@ -25,7 +25,13 @@ class ImportEvents
* must be != null
* exp_home, exp_away, exp_handicap, exp_total
*/
if ((float) $row[21] != 0 && (float) $row[22] != 0 && (float) $row[23] != 0) {
if (
(float) $row[21] != 0
&& (float) $row[22] != 0
&& (float) $row[23] != 0
&& (float) $row[24] != 0
&& (string) $row[25] != ''
) {
StatistikoEvent::updateOrCreate(
[
@@ -56,7 +62,7 @@ class ImportEvents
'exp_away' => (float) $row[22],
'exp_handicap' => (float) $row[23],
'exp_total' => (float) $row[24],
'result_code' => $row[25], // w, d, l
'result_code' => (string) $row[25], // w, d, l
'created_at' => $now,
'updated_at' => $now,
]