Working on League Matchings (Qualification)
This commit is contained in:
parent
82e60df35f
commit
9c0f94758d
4 changed files with 8552 additions and 9 deletions
|
|
@ -413,7 +413,10 @@ class Tipp extends Model
|
|||
$count = 0;
|
||||
$cutOffScore = 0;
|
||||
$dayScoreWinnersIds = array();
|
||||
|
||||
foreach ($usersWithHighestDayScore as $user) { // Feld0: user_id, dayScoreWithRankScore
|
||||
//ALT
|
||||
/*
|
||||
$count += 1;
|
||||
if ($count > 6) {
|
||||
if ($user[1] < $cutOffScore) {
|
||||
|
|
@ -423,8 +426,20 @@ class Tipp extends Model
|
|||
array_push($dayScoreWinnersIds, $user[0]);
|
||||
$key = $round_id . "_" . $user[0];
|
||||
$roundtipps[$key]['is_dayscorewinner'] = true;
|
||||
//Log::info("Dayscorewinner Round " . $round_id . " = " . $roundtipps[$key]["user_name"]);
|
||||
$cutOffScore = $user[1];
|
||||
*/
|
||||
|
||||
// NEU
|
||||
$key = $max_round_id . "_" . $user[0]; // Hier: $user[0] = user_id, $user[1] = dayScore WithRankScore
|
||||
$rankscore = $roundtipps[$key]['rankscore'];
|
||||
$count += 1;
|
||||
|
||||
if ($count==1) {$cutOffScore=$rankscore;}
|
||||
if ($rankscore < $cutOffScore) { break; }
|
||||
|
||||
array_push($dayScoreWinnersIds, $user[0]);
|
||||
$key = $round_id . "_" . $user[0];
|
||||
$roundtipps[$key]['is_dayscorewinner'] = true;
|
||||
}
|
||||
|
||||
// Compute Dayscorewin payout (Tagessieg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue