diff --git a/pfosten/app/Tipp.php b/pfosten/app/Tipp.php index 06ee5e79..af3d40bf 100755 --- a/pfosten/app/Tipp.php +++ b/pfosten/app/Tipp.php @@ -387,6 +387,15 @@ class Tipp extends Model $totalDayScoreWithRankScore = Tipp::addDayScoreValues($totalDayScoreWithRankScore, $dayScore3WithRankScore); $totalDayScoreWithRankScore = Tipp::addDayScoreValues($totalDayScoreWithRankScore, $dayScore4WithRankScore); + + if ($round_id==921 && $user_id==125) { + Log::info("DayScore Alexander in Runde 19: ". $totalDayScoreWithRankScore); + } + if ($round_id==921 && $user_id==71) { + Log::info("DayScore Karl in Runde 19: ". $totalDayScoreWithRankScore); + } + + $roundtipps[$key]['dayScoreWithRankScore'] = $totalDayScoreWithRankScore; $roundtipps[$key]['dayscore'] = Tipp::getDayScoreWithoutRankScore($totalDayScoreWithRankScore); if (!array_key_exists($round_id, $highestDayscores)) { @@ -642,11 +651,19 @@ class Tipp extends Model if ($roundtipps[$key]['dayscore'] == $highestDayScore && $roundtipps[$key]['round_completed'] && $highestDayScore > 0) { array_push($usersWithHighestDayScore, [$user_id, $roundtipps[$key]['dayScoreWithRankScore']]); } + + if($round_id==921 and $user_id==125) { + Log::info("High-Eval: Alexander Runde 19 => " . $roundtipps[$key]['dayScoreWithRankScore']); + } + if($round_id==921 and $user_id==71) { + Log::info("High-Eval: Karl Runde 19 => " . $roundtipps[$key]['dayScoreWithRankScore']); + } } $dayScoreWinnersIds = array(); // Bei >6 Tagessiegern über rankscore reduzieren if (sizeof($usersWithHighestDayScore) > 6) { + Log::info("Special: >6 Tagessieger in round_id=".$round_id); usort($usersWithHighestDayScore, array('App\Tipp', 'cmpDayWin')); $count = 0; @@ -676,6 +693,9 @@ class Tipp extends Model array_push($dayScoreWinnersIds, $user[0]); $key = $round_id . "_" . $user[0]; $roundtipps[$key]['is_dayscorewinner'] = true; + if ($round_id==921) { + Log::info("Klassifiziere User ". $user[0] . " als Tagessieger für Runde 19"); + } } } diff --git a/pfosten/composer.phar b/pfosten/composer.phar index 4cb50a57..3d1b9838 100755 Binary files a/pfosten/composer.phar and b/pfosten/composer.phar differ diff --git a/tools/restore_local.sh b/tools/restore_local.sh index 7f3a4e62..f60e0979 100644 --- a/tools/restore_local.sh +++ b/tools/restore_local.sh @@ -1 +1 @@ -mysql -h localhost -P 3306 --password=pf_password --protocol=tcp -u root pfosten +mysql -h 127.0.0.1 -P 3307 -u pf_user -p pfosten < pfosten_2026-03-15_122805.sql