Arrow

winner/loser in future games (a Play b) | Peter's Sports League Standings | Forum

Back to the sports standings script page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
winner/loser in future games (a Play b)
November 22, 2010
9:39 am
Skinner
Guest

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?

November 22, 2010
11:05 pm
Peter
Admin
Forum Posts: 841
Offline

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.