TT Results Now Show Season’s Best

I have added logic to check for a seasonal best time on the TT results page.
First I check if the race time is the fastest ever (or equal fastest), and that the rider  has more than one result on that course. Then I display “PB.”

Then, if not a PB, I check if the race time is the fastest in the calendar year when the race was run  (or equal fastest) , and that the rider  has more than one result in that time. This assumes our season is a calendar year.  Then I display “SB.”

Of course a PB trumps an SB so I will never display both.

I’ve also laid the ground work for age divisions, but for that to work I need to enter everyone’s DoB. Over the years we have collected results for 366 riders (and teams). So I might only enter DoB for this year’s members (and future years as new members are entered) . I’ll probably have an “Open” division for those who don’t have a DoB on file.

 

 


Posted

in

,

by

Tags:

Comments

Leave a Reply