uwbaddev / baddie-match

Web app to track our badminton matches
2 stars 2 forks source link

Add scripts to clear local db and get data from prod #37

Closed ivanccheng closed 1 year ago

ivanccheng commented 1 year ago

bit more refactoring, moved all but main and routes into a src folder

added scripts: (also in the readme) Scripts

Run from base dir, run with python -m app.scripts."script" Example

python -m app.scripts.nuke

nuke.py will clear your local db. Can be run with arguments m for matches, p for players, and c for categories. Run with no args to clear entire db

add_prod_data will attempt to grab production data. Can be run with arguments m for matches, p for players, and c for categories. Run with no args to get all prod data All player first names will have "_test" appended to the beginning of them, to not confuse your local env with prod.