International-Aerobatic-Club / iaccdb

IAC Aerobatic Contest Database
iaccdb.iac.org
1 stars 1 forks source link

Chief category counts are incorrect #253

Closed djmolny closed 1 year ago

djmolny commented 1 year ago

The controller code that implements /chief/:id/cv gives the Chief credit for all flights in a contest, even if the Chief only served in that role for a subset of the categories and/or flights.

For example, DJ Molny was Chief only for the first three flights of the Advanced category at the 2022 Nationals, yet here's what IACCDB displays:

Screenshot from 2023-03-08 14-03-00

djmolny commented 1 year ago

Apres fix:

Screenshot from 2023-03-08 14-10-19