Working on Quotas
This commit is contained in:
parent
b96197a086
commit
747b20049c
4 changed files with 15 additions and 24 deletions
|
|
@ -31,7 +31,7 @@ class Quota extends Model
|
|||
|
||||
$euro_gruenes_trikot = intval($euro_pott * (($quotas["Gruenes Trikot"] / 100)));
|
||||
$euro_gruenes_trikot = Quota::get6Divisor($euro_gruenes_trikot);
|
||||
$euro_pokal= intval ($euro_pott * (($quotas["Pokal"] / 100)));
|
||||
$euro_pokal= intval ($euro_pott * (($quotas["pokal"] / 100)));
|
||||
|
||||
$euro_pokal= Quota::get6Divisor($euro_pokal);
|
||||
|
||||
|
|
@ -191,14 +191,10 @@ class Quota extends Model
|
|||
|
||||
$quota = new Quota;
|
||||
$quota->season_id = $season_id;
|
||||
$quota->name = "Pokal";
|
||||
$quota->name = "pokal";
|
||||
$quota->prc = 15;
|
||||
$quota->save();
|
||||
|
||||
/// #######################################
|
||||
|
||||
// Sub-Quotas für den Spielmodus 'Tagessieg'
|
||||
|
||||
$quota = new Quota;
|
||||
$quota->season_id = $season_id;
|
||||
$quota->name = "Platz 1";
|
||||
|
|
@ -273,35 +269,35 @@ class Quota extends Model
|
|||
|
||||
$quota = new Quota;
|
||||
$quota->season_id = $season_id;
|
||||
$quota->name = "Liga Platz 1";
|
||||
$quota->name = "liga_platz1";
|
||||
$quota->order = 10;
|
||||
$quota->prc = 50;
|
||||
$quota->save();
|
||||
|
||||
$quota = new Quota;
|
||||
$quota->season_id = $season_id;
|
||||
$quota->name = "Liga Platz 2";
|
||||
$quota->name = "liga_platz2";
|
||||
$quota->order = 10;
|
||||
$quota->prc = 20;
|
||||
$quota->save();
|
||||
|
||||
$quota = new Quota;
|
||||
$quota->season_id = $season_id;
|
||||
$quota->name = "Liga Platz 3";
|
||||
$quota->name = "liga_platz3";
|
||||
$quota->order = 10;
|
||||
$quota->prc = 17;
|
||||
$quota->save();
|
||||
|
||||
$quota = new Quota;
|
||||
$quota->season_id = $season_id;
|
||||
$quota->name = "Liga Platz 2_1";
|
||||
$quota->name = "liga_platz2_1";
|
||||
$quota->order = 10;
|
||||
$quota->prc = 8;
|
||||
$quota->save();
|
||||
|
||||
$quota = new Quota;
|
||||
$quota->season_id = $season_id;
|
||||
$quota->name = "Liga Platz 3_1";
|
||||
$quota->name = "liga_platz3_1";
|
||||
$quota->order = 10;
|
||||
$quota->prc = 5;
|
||||
$quota->save();
|
||||
|
|
@ -405,7 +401,6 @@ class Quota extends Model
|
|||
foreach ($winners as $quota => $userId) {
|
||||
Log::info($quota." => ".$userId);
|
||||
|
||||
|
||||
if (!array_key_exists($userId, $winners)) {
|
||||
Log::info("Key not found: ".$quota);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue