Fix badge page assignment logic
Closed this issue · 2 comments
starcraft66 commented
I created a tournament containing seats 41 to 70 and then started assigning seats via the Badge page, it started going off the rails and assigning me seats >70. Something's badly broken.
cc @AXDOOMER
AXDOOMER commented
In case you still want to debug the issue, it can be one of these:
- One line 19,
settings.columns
andsettings.rows
return an incorrect number - On line 21,
StationLogic.get_all_stations_sorted_by_number()
returns an incorrect number of stations, causing the logic at line 26 to fail and pick the wrong station.