winner/loser in future games (a Play b) | Peter's Sports League Standings | Forum
Back to the sports standings script page
9:39 am
I am adding new functionality to standings – added an 'import CSV' option. Works fine, but now when I get to the editing of a record of a future game the code deals with winner and loser – and of course these aren't known – very confusing. Also what are the fields rf and ra for? Any help appreciated, thanks.
Also is there a manual?
The naming convention is indeed confusing and needs an overhaul. In the code, "winner" is the home team and "loser" is the away team while the "winortie" field determines who won.
"rf" is runs for
"ra" is runs against
Of course, it doesn't actually have to represent runs. It's just that the script was originally written for baseball or softball.