You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
903 B

### Data structure
A single JSON file is downloaded to provide the data set. Its structure is as follows:
```
{
'teams': {
"67": "Uruguay",
...
},
'continents': {
"4": "South America",
...
},
'events': {
'world.1930': {
'games': [...],
'teams': [...],
'rounds': {
"2": "Round of 16",
},
},
...
}
```
### Building the SQLite DB
Run `sportdb build` in the directory that has `Datafile`.
Correspondence on the topic can be found at [this google groups topic](https://groups.google.com/forum/#!msg/opensport/jYNVDF_QSJA/pyHWWtRqAgAJ).
##### Troubleshooting: Using a Gemfile
Sportdb only builds with older versions of ActiveRecord. Use a Gemfile as outlined [here](https://groups.google.com/forum/#!topic/opensport/593H1O7yIdE) to lock the correct version.