Tippstart auf Tippable round, Link Roundmail: Tipps@Tippspiel

This commit is contained in:
Torsten 2017-08-26 15:15:54 +02:00
parent 0abaeb2eba
commit 6aad1a7ab2
13 changed files with 149 additions and 34 deletions

View file

@ -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) {