ethanmad/fencing-database
Website for crowdsourcing a fencing stats database
README
- Add the new tournament to the database.
- Run
ruby ./update_gfycat_list.rb and pipe it to the right psql.
- run the rake tasks
db:normalize_names and db:add_bouts.
- Run the
fix_name_errors script, alternating with the rake task db:add_bouts until it stabilizes.
- dump the db by running
pg_dump --inserts --no-owner fencingstats > dump.dump
- upload it to heroku by running
heroku pg:psql < dump.dump
To add a new list of entries for a tournament:
- Make sure the
download_tournament_entries.rb file is set up to take arguments in stead of processing the list
- Run the command and pipe it to psql locally, to make sure it's accurate.
- Pipe it to heroku psql
To update the gfycat list:
- run the
update_gfycat_list.rb file and pipe it to heroku psql.