Preparing for beyond-season data: making ranking season-sensitive
This commit is contained in:
parent
29e493e22d
commit
6309b2b7fa
7 changed files with 12556 additions and 32 deletions
|
|
@ -305,6 +305,8 @@ class Tipp extends Model
|
|||
|
||||
$game_value=Tipp::getScoreLocal($entry->game_score1,$entry->game_score2,$entry->tipp_score1,$entry->tipp_score2,$entry->joker); // Für alle 4 Spiele
|
||||
$roundtipps[$key]['rankscore']+=$game_value;
|
||||
|
||||
|
||||
if($game_value>0) { $roundtipps[$key]['hits']+=1;}
|
||||
if ($roundtipps[$key]['hits']==4) {$roundtipps[$key]['rankscore']+=2;} // Wenn alle 4 Spiele mind. Tendenz, dann 2 Punkte Bonus
|
||||
|
||||
|
|
@ -509,6 +511,7 @@ class Tipp extends Model
|
|||
$response['round_ids'] = $round_ids;
|
||||
|
||||
Log::info("Tipp::getRoundTipps: ExecutionTime: " . number_format(( microtime(true) - $startTime), 4) . " Seconds\n");
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue