Preparing for beyond-season data: making ranking season-sensitive

This commit is contained in:
Torsten 2017-10-09 10:34:27 +02:00
parent 29e493e22d
commit 6309b2b7fa
7 changed files with 12556 additions and 32 deletions

View file

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