Arbeit an Auf/Abstieg

This commit is contained in:
Torsten 2017-10-16 11:19:57 +02:00
parent 8edec26147
commit ed0c445bfa
5 changed files with 107 additions and 18 deletions

View file

@ -141,8 +141,9 @@ class Round extends Model
return $hourDiffToLock;
}
public static function getNames() {
public static function getNames($seasonId=-1) {
$season= Season::getCurrent();
if ($seasonId!=-1) { $season = Season::where('id','=',$seasonId)->first(); }
$rounds = Round::where('season_id','=',$season->id)->get();
Log::info("START");