From d5fb0b3c3697fdf86dbcaf72054756b632e88d5d Mon Sep 17 00:00:00 2001 From: steffen123 Date: Thu, 19 Aug 2010 03:55:12 +0200 Subject: [PATCH] add wonWhenSeenStreet2-4 to DerivedStats' unimplemented section, store 0.0 by default --- pyfpdb/Database.py | 3 +++ pyfpdb/DerivedStats.py | 3 +++ pyfpdb/SQL.py | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 9204f271..cfcf856c 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1673,6 +1673,9 @@ class Database: pdata[p]['street3CBDone'], pdata[p]['street4CBDone'], pdata[p]['wonWhenSeenStreet1'], + pdata[p]['wonWhenSeenStreet2'], + pdata[p]['wonWhenSeenStreet3'], + pdata[p]['wonWhenSeenStreet4'], pdata[p]['street0Calls'], pdata[p]['street1Calls'], pdata[p]['street2Calls'], diff --git a/pyfpdb/DerivedStats.py b/pyfpdb/DerivedStats.py index 938e7b3b..eb6b6eda 100644 --- a/pyfpdb/DerivedStats.py +++ b/pyfpdb/DerivedStats.py @@ -77,6 +77,9 @@ class DerivedStats(): for i in range(1,5): self.handsplayers[player[1]]['foldToStreet%dCBChance' %i] = False self.handsplayers[player[1]]['foldToStreet%dCBDone' %i] = False + self.handsplayers[player[1]]['wonWhenSeenStreet2'] = 0.0 + self.handsplayers[player[1]]['wonWhenSeenStreet3'] = 0.0 + self.handsplayers[player[1]]['wonWhenSeenStreet4'] = 0.0 self.assembleHands(self.hand) self.assembleHandsPlayers(self.hand) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 7f8c4108..2d42587f 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -4021,6 +4021,9 @@ class Sql: street3CBDone, street4CBDone, wonWhenSeenStreet1, + wonWhenSeenStreet2, + wonWhenSeenStreet3, + wonWhenSeenStreet4, street0Calls, street1Calls, street2Calls, @@ -4090,7 +4093,7 @@ class Sql: %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, - %s + %s, %s, %s, %s )""" ################################