PYSA bills rec clubs based on team count, player count, and coach count. Each season, the recreational players must be imported into OYSA affinity and assigned to Affinity teams in order for this to occur.
The import process is technical and relies on Python, docker, and Playmetrics admin capabilities.
clone playmetrics automation from admin@swizzler.org:src/lys/playmetrics.git
docker-compose up to export all current information
- in playmetrics, export all rosters
teams -> more actions -> export rosters
- download and copy team_rosters.csv to playmetrics git repo out/ directory
- in playmetrics, export all teams
teams -> more actions -> export teams
- download and copy all_teams.csv to playmetrics git repo out/ directory
- In affinity, search for all teams in the season
teams -> team lookup -> search (for all)
- copy the table of teams and update all team names/ids in the 'oysa_team_ids' dictionary on oysa_player_import.py:25
- modify the name of the playmetrics program export file in oysa_player_import:325 to match the exported file.
- fix up any coach-created teams to match what is recorded in Affinity (oysa_player_import.py:87)
- run oysa_player_import.py