Skip to content

Stuff to change every year

mgale456 edited this page Mar 5, 2020 · 4 revisions

Change team data:

make a new Team_Data.csv with at least these columns (can be done with a join):

  1. Name - team name
  2. School - team's school
  3. Abbr - team name abbreviation
  4. Email - captain's email
  5. Captain Name - captain's name

Change Scoring Types in the Database

Can be done two ways:

  1. Manually add them through the Django admin site url: /admin/. This is easiest, but the data will dissappear if you remove the docker volume. This is not good if you are making any changes or doing any development, since you may have to remigrate the db
  2. Update the migration file: team_management/migrations/team_management/0002.....py This is the best option, since the data is stored in a persistent file

Implement non-linear scoring

edit team_management/models.py under GameParticipant edit switcher and add def <name of scoringType>. I recommend following the format of brewPotion from 2020. For each time they score, it calculates what it is worth with a simple formula, and then multiplies it by the multiplier. You can get more complicated with if statements or anything you want.

Clone this wiki locally