Tippstart auf Tippable round, Link Roundmail: Tipps@Tippspiel
This commit is contained in:
parent
0abaeb2eba
commit
6aad1a7ab2
13 changed files with 149 additions and 34 deletions
|
|
@ -131,7 +131,7 @@ class User extends Authenticatable
|
|||
}
|
||||
|
||||
public static function hasMissingTipp($user_id) {
|
||||
$round_id = Round::getFirstIncompleteRound();
|
||||
$round_id = Round::getFirstTippableRound()->id;
|
||||
$games = Game::where('round_id','=',$round_id)->get();
|
||||
|
||||
foreach ($games as $game) {
|
||||
|
|
@ -146,8 +146,7 @@ class User extends Authenticatable
|
|||
}
|
||||
|
||||
public static function hasMissingJoker($user_id) {
|
||||
$round_id = Round::getFirstIncompleteRound();
|
||||
//Log::info("round_id for jokercheck=".$round_id);
|
||||
$round_id = Round::getFirstTippableRound()->id;
|
||||
$games = Game::where('round_id','=',$round_id." user_id=".$user_id)->get();
|
||||
$joker=0;
|
||||
foreach ($games as $game) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue