robobruin / freebiestats

Automatically exported from code.google.com/p/freebiestats
0 stars 0 forks source link

Totals line does not include players who were 0/0 #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When totaling up the day's stats, the script does not include players who
were 0/0 but scored a run, had an RBI, or stole a base. Thus, a pinch
hitter who walks with the bases loaded, then steals and eventually scores a
run would have 1 RBI, 1 run, and 1 stolen base, but no official at bats and
the script does not include these in the totals.

See the attached screenshot. Granderson's run and SB aren't counted.

Original issue reported on code.google.com by adam%kal...@gtempaccount.com on 2 May 2007 at 6:08

Attachments:

GoogleCodeExporter commented 9 years ago
the offending line is line #130:
        if (player.ab() != '-' && player.ab() != 0) {
will fix this.

Original comment by rod...@gmail.com on 4 May 2007 at 5:18

GoogleCodeExporter commented 9 years ago
fixed. checked in.

Original comment by rod...@gmail.com on 5 May 2007 at 4:19