FIRSTTeam102 / scoutradioz

Scoutradioz, a multi-team FRC scouting app developed by The Gearheads. Designed for and running on Amazon Web Services.
https://scoutradioz.com
Other
25 stars 8 forks source link

Fixed match scheduling not working during/past first break #214

Closed Ardaglash closed 3 months ago

Ardaglash commented 3 months ago

The match assignments, when "assign up to the next break", would only work at the start of the event; during (or after) that first break, match assignments "up to the following break" did not work. You'd have to check the box to ignore the breaks.

This is because of the change from "timestamp of next unplayed match" to "timestamp of last played match". Now, during the first break, the last played match was automatically 'large break' away from the next unplayed match.

Fix is to not check for the gap on the 1st unplayed match (since presumably we expect it to be 'large break' away), only on the subsequent matches.