Working on Qualification Pairings
This commit is contained in:
parent
9c0f94758d
commit
a66189ca00
19 changed files with 9005 additions and 237 deletions
|
|
@ -221,8 +221,6 @@ class UsersController extends Controller
|
|||
$user_ids = $response['user_ids'];
|
||||
$round_ids = $response['round_ids'];
|
||||
|
||||
|
||||
|
||||
///////////////////////////// DISPLAY AUFBAU /////////////////////////////
|
||||
|
||||
///
|
||||
|
|
@ -233,6 +231,8 @@ class UsersController extends Controller
|
|||
|
||||
$isFinalRound=false;
|
||||
|
||||
Log::info("Starting Display Loop");
|
||||
|
||||
foreach ($user_ids as $user_id) {
|
||||
$rankscore_total= 0;
|
||||
$payout_sum = 0;
|
||||
|
|
@ -251,10 +251,12 @@ class UsersController extends Controller
|
|||
$rankingDisplay[$user_id]["user_name"] = $roundtipps[$key]["user_name"];
|
||||
$rankingDisplay[$user_id]["is_dayscorewinner"] = $roundtipps[$key]["is_dayscorewinner"];
|
||||
|
||||
if ($round_id==4 && $roundtipps[$key]["is_dayscorewinner"]) {
|
||||
//Log::info("Dayscorewinner: ".$roundtipps[$key]["user_name"]);
|
||||
}
|
||||
if ($round_id=="13") {
|
||||
Log::info('userid '.$user_id." [".$key."]");
|
||||
Log::info($roundtipps[$key]["is_dayscorewinner"]);
|
||||
Log::info($roundtipps[$key]["payout"]);
|
||||
|
||||
}
|
||||
|
||||
$rankingDisplay[$user_id]["ranking_payout"] = $roundtipps[$key]["ranking_payout"];
|
||||
if ($roundtipps[$key]["ranking_payout"]>0) {
|
||||
|
|
@ -309,8 +311,6 @@ class UsersController extends Controller
|
|||
$rankingDisplay[$user_id]["trendCol4"] = Tipp::trendCol($roundtipps[$key]["results"][6],$roundtipps[$key]["results"][7],
|
||||
$roundtipps[$key]["tipps"][6],$roundtipps[$key]["tipps"][7],
|
||||
$roundtipps[$key]["joker"][3]);
|
||||
|
||||
|
||||
}
|
||||
|
||||
$userids = array_keys($rankingDisplay);
|
||||
|
|
@ -334,7 +334,6 @@ class UsersController extends Controller
|
|||
$game_results=array(); // 4 Spielergebnisse der angezeigten Runde
|
||||
array_push($game_results,$rankingDisplay[0]["result_score1"],$rankingDisplay[0]["result_score2"],$rankingDisplay[0]["result_score3"],$rankingDisplay[0]["result_score4"],$rankingDisplay[0]["result_score5"],$rankingDisplay[0]["result_score6"],$rankingDisplay[0]["result_score7"],$rankingDisplay[0]["result_score8"]);
|
||||
|
||||
|
||||
Log::info("UserController::ranking: ExecutionTime: " . number_format(( microtime(true) - $startTime), 4) . " Seconds\n");
|
||||
return view('users.ranking', compact('all_rounds','rankingDisplay','userids','round','games','game_results','isFinalRound'));
|
||||
}
|
||||
|
|
@ -475,6 +474,15 @@ class UsersController extends Controller
|
|||
foreach($user_ids as $user_id) {
|
||||
$key=$round_id."_".$user_id;
|
||||
|
||||
if ($key=='13_44') {
|
||||
Log::info("Debat(44) Debug");
|
||||
Log::info("is_dayscorewinner:");
|
||||
Log::info($roundtipps[$key]['is_dayscorewinner']);
|
||||
|
||||
Log::info("payout:");
|
||||
Log::info($roundtipps[$key]['payout']);
|
||||
}
|
||||
|
||||
$payout = str_replace(",",".",$roundtipps[$key]['payout']);
|
||||
if (strlen($payout)==0) { $payout=0; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue