Working on Case2: New League Creation after Qualification
This commit is contained in:
parent
d8a7f78cbd
commit
66671b1e81
11 changed files with 12726 additions and 40 deletions
|
|
@ -36,7 +36,7 @@ class UsersController extends Controller
|
|||
$round_id = Round::getLastCompleteRoundId();
|
||||
|
||||
if ($round_id > -1) {
|
||||
$rounds = Round::where("id", "<=", $round_id)->get();
|
||||
$rounds = Round::where("id", "<=", $round_id)->where('season_id','=',$currentSeason->id)->get();
|
||||
foreach($rounds as $round) {
|
||||
$dpr =array();
|
||||
$dpr["name"]=$round->name;
|
||||
|
|
@ -189,6 +189,9 @@ class UsersController extends Controller
|
|||
|
||||
|
||||
public function ranking($max_round_id, $seasonId=-1) {
|
||||
if (!Auth::user()) { return redirect("/"); }
|
||||
|
||||
|
||||
$startTime = microtime(true);
|
||||
|
||||
$season = Season::getCurrent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue