Updated restore_local command

This commit is contained in:
Torsten 2026-03-17 22:49:17 +01:00
parent f9d4924f49
commit 0737c7c571
3 changed files with 21 additions and 1 deletions

View file

@ -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");
}
}
}

Binary file not shown.

View file

@ -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