From 17e23c99d0fee8cf9a316ff97859a987639d743e Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 8 Oct 2010 15:12:22 +0800 Subject: [PATCH] DerivedStats: Adjust wonWhenSeenStretX Code looks trivial and correct. Causes 13 regressions that need to be reviewed. Total Errors: 48 ( 7) : wonWhenSeenStreet2 ( 4) : wonWhenSeenStreet3 ( 2) : wonWhenSeenStreet4 --- pyfpdb/DerivedStats.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyfpdb/DerivedStats.py b/pyfpdb/DerivedStats.py index cb289b7a..1f5a933e 100644 --- a/pyfpdb/DerivedStats.py +++ b/pyfpdb/DerivedStats.py @@ -175,6 +175,12 @@ class DerivedStats(): self.handsplayers[player]['rake'] = int(100* hand.rake)/len(hand.collectees) if self.handsplayers[player]['street1Seen'] == True: self.handsplayers[player]['wonWhenSeenStreet1'] = 1.0 + if self.handsplayers[player]['street2Seen'] == True: + self.handsplayers[player]['wonWhenSeenStreet2'] = 1.0 + if self.handsplayers[player]['street3Seen'] == True: + self.handsplayers[player]['wonWhenSeenStreet3'] = 1.0 + if self.handsplayers[player]['street4Seen'] == True: + self.handsplayers[player]['wonWhenSeenStreet4'] = 1.0 if self.handsplayers[player]['sawShowdown'] == True: self.handsplayers[player]['wonAtSD'] = 1.0