Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleanup at fixtures

  • Loading branch information...
commit f96b6c1319d18be66d020ec8776ada169cbc3ec5 1 parent 465e2ee
@geraldb geraldb authored
Showing with 128 additions and 84 deletions.
  1. +18 −0 NOTES.md
  2. +31 −0 README.md
  3. +0 −84 db/at/2011_12/bl.rb
  4. +79 −0 db/at/2011_12/bl.txt
View
18 NOTES.md
@@ -0,0 +1,18 @@
+
+## SQLite
+
+Dump Schema. Issue the command
+
+ sqlite sport.db .schema
+
+To save the schema dump into a file, that is, redirect
+the standard output (stdout) to a file. Example:
+
+ sqlite sport.db .schema > sport.sql
+
+
+### SQLite Admin Tools / Windows
+
+* SQLite Studio (Free) -> add link here
+
+
View
31 README.md
@@ -159,6 +159,37 @@ let's use the Champions League 2012/13 and the World Cup 2012/13 Quali events an
That's it.
+## Plain Text Fixtures
+
+The `sportdb` lets you import fixtures in plain text. Example:
+
+```
+Spieltag 5
+
+23.09. 13:30 Liverpool FC - Manchester United 1:2
+23.09. 15:00 Newcastle United - Norwich City 1:0
+23.09. 16:00 Manchester City - Arsenal FC 1:1
+23.09. 16:00 Tottenham Hotspur - Queens Park Rangers 2:1
+```
+
+The plain text format skips comments (starting with `#`) and blank lines. Example:
+
+```
+###
+# Premier League
+# - more info -> http://premierleague.com (official site)
+# http://en.wikipedia.org/wiki/Premier_League
+```
+
+### Format for Rounds
+
+TBD
+
+### Format for Fixtures
+
+TBD
+
+
## Real World Usage
[sport.db Web Admin](https://github.com/geraldb/sport.db.admin) - `sport.db` Web Admin Tool in Ruby on Rails (version 3.2 and up).
View
84 db/at/2011_12/bl.rb
@@ -35,88 +35,4 @@
bl.teams << ksv
-bl29 = Round.create!( event: bl, pos: 29, title: '29. Runde', start_at: Time.cet('2012-04-07'), title2: 'Sa+So 7.+8. April 2012' )
-bl30 = Round.create!( event: bl, pos: 30, title: '30. Runde', start_at: Time.cet('2012-04-14'), title2: 'Sa+So 14.+15. April 2012' )
-bl31 = Round.create!( event: bl, pos: 31, title: '31. Runde', start_at: Time.cet('2012-04-21'), title2: 'Sa+So 21.+22. April 2012' )
-bl32 = Round.create!( event: bl, pos: 32, title: '32. Runde', start_at: Time.cet('2012-04-28'), title2: 'Sa+So 28.+29. April 2012' )
-bl33 = Round.create!( event: bl, pos: 33, title: '33. Runde', start_at: Time.cet('2012-05-05'), title2: 'Sa 5. Mai 2012' )
-bl34 = Round.create!( event: bl, pos: 34, title: '34. Runde', start_at: Time.cet('2012-05-10'), title2: 'Do 10. Mai 2012' )
-bl35 = Round.create!( event: bl, pos: 35, title: '35. Runde', start_at: Time.cet('2012-05-13'), title2: 'So 13. Mai 2012' )
-bl36 = Round.create!( event: bl, pos: 36, title: '36. Runde', start_at: Time.cet('2012-05-17'), title2: 'Do 17. Mai 2012' )
-
-
-games_bl29 = [
- [ salzburg, [2, 0], wacker, Time.cet('2012-04-07 16:00') ],
- [ ried, [0, 1], austria, Time.cet('2012-04-07 18:30') ],
- [ ksv, [2, 3], admira, Time.cet('2012-04-07 18:30') ],
- [ rapid, [2, 1], neustadt, Time.cet('2012-04-07 18:30') ],
- [ mattersburg, [0, 2], sturm, Time.cet('2012-04-08 16:00') ]
-]
-
-games_bl30 = [
- [ neustadt, [0, 0], ksv, Time.cet('2012-04-14 16:00') ],
- [ admira, [1, 1], wacker, Time.cet('2012-04-14 18:30') ],
- [ sturm, [2, 2], salzburg, Time.cet('2012-04-14 18:30') ],
- [ ried, [2, 0], mattersburg, Time.cet('2012-04-14 18:30') ],
- [ austria, [0, 0], rapid, Time.cet('2012-04-15 16:00') ]
-]
-
-games_bl31 = [
- [ wacker, [2, 0], neustadt, Time.cet('2012-04-21 16:00') ],
- [ ksv, [1, 0], austria, Time.cet('2012-04-21 18:30') ],
- [ mattersburg, [1, 2], admira, Time.cet('2012-04-21 18:30') ],
- [ salzburg, [2, 0], ried, Time.cet('2012-04-21 18:30') ],
- [ rapid, [1, 1], sturm, Time.cet('2012-04-22 16:00') ]
-]
-
-games_bl32 = [
- [ austria, [3, 0], wacker, Time.cet('2012-04-28 16:00') ],
- [ neustadt, [1, 4], admira, Time.cet('2012-04-28 18:30') ],
- [ mattersburg, [0, 1], salzburg, Time.cet('2012-04-28 18:30') ],
- [ sturm, [2, 1], ksv, Time.cet('2012-04-28 18:30') ],
- [ ried, [2, 3], rapid, Time.cet('2012-04-29 16:00') ]
-]
-
-games_bl33 = [
- [ neustadt, [0, 0], sturm, Time.cet('2012-05-05 16:00') ],
- [ admira, [3, 2], austria, Time.cet('2012-05-05 18:30') ],
- [ ksv, [0, 0], ried, Time.cet('2012-05-05 18:30') ],
- [ wacker, [3, 6], mattersburg, Time.cet('2012-05-05 18:30') ],
- [ rapid, [0, 1], salzburg, Time.cet('2012-05-06 16:00') ]
-]
-
-games_bl34 = [
- [ salzburg, [2, 0], ksv, Time.cet('2012-05-10 18:30') ],
- [ austria, [3, 1], neustadt, Time.cet('2012-05-10 20:30') ],
- [ ried, [1, 1], wacker, Time.cet('2012-05-10 20:30') ],
- [ mattersburg, [0, 1], rapid, Time.cet('2012-05-10 20:30') ],
- [ sturm, [0, 3], admira, Time.cet('2012-05-10 20:30') ]
-]
-
-games_bl35 = [
- [ ksv, [0,2], rapid, Time.cet('2012-05-13 16:00') ],
- [ wacker, [1,1], sturm, Time.cet('2012-05-13 16:00') ],
- [ neustadt, [1,5], salzburg, Time.cet('2012-05-13 16:00') ],
- [ admira, [1,1], ried, Time.cet('2012-05-13 16:00') ],
- [ austria, [1,0], mattersburg, Time.cet('2012-05-13 16:00') ]
-]
-
-games_bl36 = [
- [ rapid, [2,0], wacker, Time.cet('2012-05-17 16:00') ],
- [ ried, [2,2], neustadt, Time.cet('2012-05-17 16:00') ],
- [ mattersburg, [2,0], ksv, Time.cet('2012-05-17 16:00') ],
- [ sturm, [3,1], austria, Time.cet('2012-05-17 16:00') ],
- [ salzburg, [2,0], admira, Time.cet('2012-05-17 16:00') ]
-]
-
-Game.create_from_ary!( games_bl29, bl29 )
-Game.create_from_ary!( games_bl30, bl30 )
-Game.create_from_ary!( games_bl31, bl31 )
-Game.create_from_ary!( games_bl32, bl32 )
-Game.create_from_ary!( games_bl33, bl33 )
-Game.create_from_ary!( games_bl34, bl34 )
-Game.create_from_ary!( games_bl35, bl35 )
-Game.create_from_ary!( games_bl36, bl36 )
-
-
Prop.create!( key: 'db.at.bl.2011/12.version', value: '1' )
View
79 db/at/2011_12/bl.txt
@@ -0,0 +1,79 @@
+######################################
+## Oesterreichische Bundesliga 2011/12
+##
+## more info => http://bundesliga.at
+
+# note: timezone for games (play_at) is *always* CET (central european time)
+
+
+29. Runde / Sa+So 7.+8. April 2012
+
+salzburg 2:0 wacker 2012-04-07 16:00
+ried 0:1 austria 2012-04-07 18:30
+ksv 2:3 admira 2012-04-07 18:30
+rapid 2:1 neustadt 2012-04-07 18:30
+mattersburg 0:2 sturm 2012-04-08 16:00
+
+
+30. Runde / Sa+So 14.+15. April 2012
+
+neustadt 0:0 ksv 2012-04-14 16:00
+admira 1:1 wacker 2012-04-14 18:30
+sturm 2:2 salzburg 2012-04-14 18:30
+ried 2:0 mattersburg 2012-04-14 18:30
+austria 0:0 rapid 2012-04-15 16:00
+
+
+31. Runde / Sa+So 21.+22. April 2012
+
+wacker 2:0 neustadt 2012-04-21 16:00
+ksv 1:0 austria 2012-04-21 18:30
+mattersburg 1:2 admira 2012-04-21 18:30
+salzburg 2:0 ried 2012-04-21 18:30
+rapid 1:1 sturm 2012-04-22 16:00
+
+
+32. Runde / Sa+So 28.+29. April 2012
+
+austria 3:0 wacker 2012-04-28 16:00
+neustadt 1:4 admira 2012-04-28 18:30
+mattersburg 0:1 salzburg 2012-04-28 18:30
+sturm 2:1 ksv 2012-04-28 18:30
+ried 2:3 rapid 2012-04-29 16:00
+
+
+33. Runde / Sa 5. Mai 2012
+
+neustadt 0:0 sturm 2012-05-05 16:00
+admira 3:2 austria 2012-05-05 18:30
+ksv 0:0 ried 2012-05-05 18:30
+wacker 3:6 mattersburg 2012-05-05 18:30
+rapid 0:1 salzburg 2012-05-06 16:00
+
+
+34. Runde / Do 10. Mai 2012
+
+salzburg 2:0 ksv 2012-05-10 18:30
+austria 3:1 neustadt 2012-05-10 20:30
+ried 1:1 wacker 2012-05-10 20:30
+mattersburg 0:1 rapid 2012-05-10 20:30
+sturm 0:3 admira 2012-05-10 20:30
+
+
+35. Runde / So 13. Mai 2012
+
+ksv 0:2 rapid 2012-05-13 16:00
+wacker 1:1 sturm 2012-05-13 16:00
+neustadt 1:5 salzburg 2012-05-13 16:00
+admira 1:1 ried 2012-05-13 16:00
+austria 1:0 mattersburg 2012-05-13 16:00
+
+
+36. Runde / Do 17. Mai 2012
+
+rapid 2:0 wacker 2012-05-17 16:00
+ried 2:2 neustadt 2012-05-17 16:00
+mattersburg 2:0 ksv 2012-05-17 16:00
+sturm 3:1 austria 2012-05-17 16:00
+salzburg 2:0 admira 2012-05-17 16:00
+
Please sign in to comment.
Something went wrong with that request. Please try again.