Working on Qualification Pairings
This commit is contained in:
parent
9c0f94758d
commit
a66189ca00
19 changed files with 9005 additions and 237 deletions
|
|
@ -119,7 +119,7 @@ class TippsController extends Controller
|
|||
|
||||
// Joker gesetzt ? Dann Jokerflag für alle Tipps der selben Runde entfernen
|
||||
if ($tipp->joker){
|
||||
Log::info("Checking for joker strip");
|
||||
//Log::info("Checking for joker strip");
|
||||
$game=Game::where('id','=',$tipp->game_id)->first();
|
||||
$round_id=$game->round_id;
|
||||
|
||||
|
|
@ -127,12 +127,13 @@ class TippsController extends Controller
|
|||
foreach ($games as $game) {
|
||||
|
||||
$tipp = Tipp::where('user_id', $user->id)->where('game_id', $game->id)->first();
|
||||
Log::info("Testing game_id " . $game->id);
|
||||
//Log::info("Testing game_id " . $game->id);
|
||||
if ($tipp->id != request('id')) {
|
||||
Log::info("Resetting game_id " . $game->id);
|
||||
//Log::info("Resetting game_id " . $game->id);
|
||||
$tipp->joker = false;
|
||||
$tipp->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue