Permalink
Browse files

add quotes for at cup round 2

  • Loading branch information...
1 parent c9237a4 commit 0a1998fc448c75586e33705e659e7c8e1e6bb6c2 @geraldb geraldb committed Sep 23, 2012
@@ -1,4 +1,4 @@
-<!-- todo/fix: add is_debug? -->
+<!-- todo/fix: add is_debug?
<hr>
<pre style='color: maroon;'>
params:
@@ -7,4 +7,4 @@ params:
session:
<%= debug( session ) %>
</pre>
-<!-- -->
+ -->
@@ -162,8 +162,27 @@
[ 32, heiligenkreuz,[0,5], rapid, Time.cet('2012-07-15 18:00') ]
]
+games_cuprunde2 = [
+ [ 1, kalsdorf, [], hartberg, Time.cet('2012-09-24 19:00') ],
+ [ 2, viktoria, [], ksv, Time.cet('2012-09-25 16:00') ],
+ [ 3, hard, [], altach, Time.cet('2012-09-25 16:30') ],
+ [ 4, stegersbach, [], salzburg, Time.cet('2012-09-25 18:00') ],
+ [ 5, pasching, [], austrial, Time.cet('2012-09-25 19:00') ],
+ [ 6, austriak, [], admira, Time.cet('2012-09-25 19:00') ],
+ [ 7, schwechat, [], sturm, Time.cet('2012-09-25 19:00') ],
+ [ 8, lask, [], groedig, Time.cet('2012-09-25 19:00') ],
+ [ 9, stjohann, [], lustenau, Time.cet('2012-09-25 19:00') ],
+ [ 10, sollenau, [], wacker, Time.cet('2012-09-25 19:00') ],
+ [ 11, vsv, [], neustadt, Time.cet('2012-09-25 19:00') ],
+ [ 12, dornbirn, [], austria, Time.cet('2012-09-25 20:30') ],
+ [ 13, badvoeslau, [], mattersburg, Time.cet('2012-09-26 16:00') ],
+ [ 14, stflorian, [], ried, Time.cet('2012-09-26 19:00') ],
+ [ 15, allerheiligen, [], rapid, Time.cet('2012-09-26 19:00') ],
+ [ 16, gak, [], wac, Time.cet('2012-09-26 20:20') ]
+]
Game.create_knockouts_from_ary!( games_cuprunde1, cuprunde1 )
+Game.create_knockouts_from_ary!( games_cuprunde2, cuprunde2 )
## todo: use new version constant for app module e.g. Wettpool::VERSION ??
Prop.create!( :key => 'db.seeds.austria.cup.2012/13.version', :value => '1' )
@@ -4,11 +4,6 @@
### ÖFB Cup 2012/13 Part II
-cup = Event.find_by_key!( 'at_cup_2012_13' )
-
-cuprunde2 = Round.find_by_event_id_and_pos( cup.id, 2 )
-
-
kalsdorf = Team.find_by_key!( 'kalsdorf' )
hartberg = Team.find_by_key!( 'hartberg' )
viktoria = Team.find_by_key!( 'viktoria' )
@@ -42,26 +37,55 @@
gak = Team.find_by_key!( 'gak' )
wac = Team.find_by_key!( 'wac' )
-games_cuprunde2 = [
- [ 1, kalsdorf, [], hartberg, Time.cet('2012-09-24 19:00') ],
- [ 2, viktoria, [], ksv, Time.cet('2012-09-25 16:00') ],
- [ 3, hard, [], altach, Time.cet('2012-09-25 16:30') ],
- [ 4, stegersbach, [], salzburg, Time.cet('2012-09-25 18:00') ],
- [ 5, pasching, [], austrial, Time.cet('2012-09-25 19:00') ],
- [ 6, austriak, [], admira, Time.cet('2012-09-25 19:00') ],
- [ 7, schwechat, [], sturm, Time.cet('2012-09-25 19:00') ],
- [ 8, lask, [], groedig, Time.cet('2012-09-25 19:00') ],
- [ 9, stjohann, [], lustenau, Time.cet('2012-09-25 19:00') ],
- [ 10, sollenau, [], wacker, Time.cet('2012-09-25 19:00') ],
- [ 11, vsv, [], neustadt, Time.cet('2012-09-25 19:00') ],
- [ 12, dornbirn, [], austria, Time.cet('2012-09-25 20:30') ],
- [ 13, badvoeslau, [], mattersburg, Time.cet('2012-09-26 16:00') ],
- [ 14, stflorian, [], ried, Time.cet('2012-09-26 19:00') ],
- [ 15, allerheiligen, [], rapid, Time.cet('2012-09-26 19:00') ],
- [ 16, gak, [], wac, Time.cet('2012-09-26 20:20') ]
+
+cup = Event.find_by_key!( 'at_cup_2012_13' )
+
+cuprunde2 = Round.find_by_event_id_and_pos( cup.id, 2 )
+
+tipp3 = Service.find_by_key!( 'tipp3' )
+betathome = Service.find_by_key!( 'betathome' )
+
+cuprunde2_tipp3_odds = [
+ [ kalsdorf, hartberg, 2.7, 2.9, 2.1 ],
+ [ viktoria, ksv, 6.8, 4.5, 1.2 ],
+ [ hard, altach, 6.8, 4.5, 1.2 ],
+ [ stegersbach, salzburg, 12, 6, 1.05 ],
+ [ pasching, austrial, 3.8, 3.4, 1.55 ],
+ [ austriak, admira, 6.8, 4.5, 1.2 ],
+ [ schwechat, sturm, 9, 5.5, 1.1 ],
+ [ lask, groedig, 3.1, 3, 1.85 ],
+ [ stjohann, lustenau, 4.6, 3.4, 1.45 ],
+ [ sollenau, wacker, 6.5, 4, 1.25 ],
+ [ vsv, neustadt, 5.8, 3.8, 1.3 ],
+ [ dornbirn, austria, 9, 5.5, 1.1 ],
+ [ badvoeslau, mattersburg, 7.5, 5, 1.15 ],
+ [ stflorian, ried, 6.8, 4.5, 1.2 ],
+ [ allerheiligen, rapid, 12, 6, 1.05 ],
+ [ gak, wac, 5.8, 3.8, 1.3 ]
]
-Game.create_knockouts_from_ary!( games_cuprunde2, cuprunde2 )
+cuprunde2_betathome_odds = [
+ [ kalsdorf, hartberg, 3.1, 3.2, 2.05 ],
+ [ viktoria, ksv, 7.5, 5.2, 1.25 ],
+ [ hard, altach, 8.5, 5.8, 1.2 ],
+ [ stegersbach, salzburg, 13, 11, 1.05 ],
+ [ pasching, austrial, 4.3, 3.75, 1.6 ],
+ [ austriak, admira, 7, 5.5, 1.25 ],
+ [ schwechat, sturm, 13, 7.2, 1.1 ],
+ [ lask, groedig, 3.6, 3.3, 1.85 ],
+ [ stjohann, lustenau, 4.75, 3.75, 1.55 ],
+ [ sollenau, wacker, 9, 5.5, 1.2 ],
+ [ vsv, neustadt, 6.5, 5, 1.3 ],
+ [ dornbirn, austria, 13, 7.2, 1.1 ],
+ [ badvoeslau, mattersburg, 13, 7.2, 1.1 ],
+ [ stflorian, ried, 11, 6.2, 1.15 ],
+ [ allerheiligen, rapid, 13, 11, 1.05 ],
+ [ gak, wac, 7.2, 4.5, 1.3 ]
+]
+
+Quote.create_from_ary_for_round!( cuprunde2_tipp3_odds, tipp3, cuprunde2 )
+Quote.create_from_ary_for_round!( cuprunde2_betathome_odds, betathome, cuprunde2 )
+
## todo: use new version constant for app module e.g. Wettpool::VERSION ??
Prop.create!( :key => 'db.seeds.austria.cup.2012/13.2.version', :value => '1' )
@@ -126,7 +126,7 @@
[ mancity, dortmund, 1.7, 3.85, 4.45 ]]
-clr2_tipp3_odds = []
+## clr2_tipp3_odds = []
Quote.create_from_ary_for_round!( clr1_tipp3_odds, tipp3, clr1 )
## Quote.create_from_ary_for_round!( clr2_tipp3_odds, tipp3, clr2 )
@@ -5,19 +5,24 @@
##############
## Pools
-at_bl = Event.find_by_key!( 'at_bl_2012_13' )
-at_cup = Event.find_by_key!( 'at_cup_2012_13' )
-wm_quali = Event.find_by_key!( 'wmql' )
+at_bl = Event.find_by_key!( 'at_bl_2012_13' )
+at_cup = Event.find_by_key!( 'at_cup_2012_13' )
+wm_quali = Event.find_by_key!( 'wmql' )
+cl_2012_13 = Event.find_by_key!( 'cl.2012/13' )
nn = User.find_by_key!( 'nn' )
behrooz = User.find_by_key!( 'behroozs' )
manfred = User.find_by_key!( 'manfredk' )
+ande = User.find_by_key!( 'ande' )
-Pool.create!( :event => at_bl, :title => 'USS EF', :user => manfred, :welcome => '' )
-Pool.create!( :event => at_cup, :title => 'USS EF', :user => manfred, :welcome => '' )
-Pool.create!( :event => wm_quali, :title => 'USS EF', :user => behrooz, :welcome => '' )
+Pool.create!( :event => at_bl, :title => 'USS', :user => manfred, :welcome => '' )
+Pool.create!( :event => at_cup, :title => 'USS', :user => manfred, :welcome => '' )
+Pool.create!( :event => wm_quali, :title => 'USS', :user => behrooz, :welcome => '' )
+Pool.create!( :event => cl_2012_13, :title => 'USS', :user => ande, :welcome => '' )
+
+
## todo: use new version constant for app module e.g. Wettpool::VERSION ??
Prop.create!( :key => 'db.seeds.uss.pools.others.version', :value => '1' )
@@ -5,14 +5,6 @@
##############
## Pools
-cl_2012_13 = Event.find_by_key!( 'cl.2012/13' )
-
-# nn = User.find_by_key!( 'nn' )
-
-ande = User.find_by_key!( 'ande' )
-
-
-Pool.create!( :event => cl_2012_13, :title => 'USS', :user => ande, :welcome => '' )
## todo: use new version constant for app module e.g. Wettpool::VERSION ??
-Prop.create!( :key => 'db.seeds.uss.pools.others2.version', :value => '1' )
+Prop.create!( :key => 'db.seeds.uss.pools.others.2.version', :value => '1' )
@@ -0,0 +1,37 @@
+# encoding: utf-8
+
+puts "*** loading seed data in seeds/world/quali_2012_13_2.rb"
+
+#################################3
+# Gruppe C
+
+ger = Team.find_by_key!( 'ger' )
+fro = Team.find_by_key!( 'fro' )
+irl = Team.find_by_key!( 'irl' )
+kaz = Team.find_by_key!( 'kaz' )
+aut = Team.find_by_key!( 'aut' )
+swe = Team.find_by_key!( 'swe' )
+
+
+world = Event.find_by_key!( 'wmql' )
+
+world2 = Round.find_by_event_id_and_pos!( world.id, 2 )
+
+tipp3 = Service.find_by_key!( 'tipp3' )
+betathome = Service.find_by_key!( 'betathome' )
+
+
+world2_betathome_odds = [
+ [ irl, ger, ],
+ [ fro, swe, ],
+ [ kaz, aut, ],
+ [ ger, swe, ],
+ [ fro, irl, ],
+ [ aut, kaz, ]]
+
+Quote.create_from_ary_for_round!( world2_betathome_odds, betathome, world2 )
+
+
+
+## todo: use new version constant for app module e.g. Wettpool::VERSION ??
+Prop.create!( :key => 'db.seeds.world.quali.2012/13.2.version', :value => '1' )
@@ -5,24 +5,16 @@ task :load_uss_others => [:environment] do |t|
['services',
'austria/teams', 'austria/bl_2012_13', 'austria/cup_2012_13',
'euro/teams', 'world/quali_2012_13',
+ 'cl/teams', 'cl/cl_2012_13',
'uss/users', 'uss/others_pools' ].each do |seed|
require "#{Rails.root}/db/seeds/#{seed}.rb"
end
end
-desc "wettpool: load seed data for uss cl pool"
-task :load_uss_cl => [:environment] do |t|
-
- ['cl/teams', 'cl/cl_2012_13',
- 'uss/others_pools2' ].each do |seed|
- require "#{Rails.root}/db/seeds/#{seed}.rb"
- end
-
-end
-desc "wettpool: load more seed data for uss bl cup 2 pool"
-task :load_uss_cup2 => [:environment] do |t|
+desc "wettpool: load more seed data for bl cup 2 pool"
+task :load_cup_ii => [:environment] do |t|
[ 'austria/cup_2012_13_2' ].each do |seed|
require "#{Rails.root}/db/seeds/#{seed}.rb"
@@ -32,7 +24,7 @@ end
desc "wettpool: load cl 2012/13 quotes for round 1"
-task :load_cl_quotes => [:environment] do |t|
+task :load_cl_ii => [:environment] do |t|
[ 'cl/cl_2012_13_2' ].each do |seed|
require "#{Rails.root}/db/seeds/#{seed}.rb"

0 comments on commit 0a1998f

Please sign in to comment.