fw42 / cubecomp

WCA Rubik's Cube competition website hosting
https://cubecomp.de/
MIT License
10 stars 4 forks source link

fix bug in competing logic #147

Closed fw42 closed 9 years ago

fw42 commented 9 years ago

This fixes a bug where a competitor that is registered for only one event on a day would be considered to be "competing" (i.e. pay the competitor price, not the guest price), even if the event registration is on waiting list.

This PR fixes that and only considers competitors to be "competing" if they are participating in at least one event and are not on the waiting list for that event.