Updating repo for cross-computer work
This commit is contained in:
parent
807cf49bc0
commit
1fea0f4fe7
18 changed files with 87847 additions and 5202 deletions
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace App;
|
||||
|
||||
use App\Season;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Game;
|
||||
use App\Season;
|
||||
|
||||
use Log;
|
||||
use DB;
|
||||
|
|
@ -66,6 +66,10 @@ class Round extends Model
|
|||
return $lastCompleteRound;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getFirstIncompleteRound($seasonId=-1) {
|
||||
$season=null;
|
||||
if ($seasonId==-1) {
|
||||
|
|
@ -225,6 +229,7 @@ class Round extends Model
|
|||
return $roundnames;
|
||||
}
|
||||
|
||||
|
||||
public static function getLastRoundId($seasonId=-1) {
|
||||
$season= Season::getCurrent();
|
||||
if ($seasonId!=-1) { $season = Season::where('id','=',$seasonId)->first(); }
|
||||
|
|
@ -233,4 +238,9 @@ class Round extends Model
|
|||
return $round->id;
|
||||
}
|
||||
|
||||
|
||||
public static function getSeasonId($round_id) {
|
||||
$round=Round::where('id',$round_id)->first();
|
||||
return $round->season_id;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue