From 69c1c41b36e1acffc875646774e94610da138f82 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Thu, 19 Aug 2010 04:09:24 +0200 Subject: [PATCH] add these stats to DB/DerivedStats/SQL: street0_4BChance/Done, other3/4BStreet0 --- pyfpdb/Database.py | 4 ++++ pyfpdb/DerivedStats.py | 6 ++++-- pyfpdb/SQL.py | 6 +++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index ec139c52..cd18147f 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1691,6 +1691,10 @@ class Database: pdata[p]['startCards'], pdata[p]['street0_3BChance'], pdata[p]['street0_3BDone'], + pdata[p]['street0_4BChance'], + pdata[p]['street0_4BDone'], + pdata[p]['other3BStreet0'], + pdata[p]['other4BStreet0'], pdata[p]['otherRaisedStreet0'], pdata[p]['otherRaisedStreet1'], pdata[p]['otherRaisedStreet2'], diff --git a/pyfpdb/DerivedStats.py b/pyfpdb/DerivedStats.py index 4c896114..dde8ecca 100644 --- a/pyfpdb/DerivedStats.py +++ b/pyfpdb/DerivedStats.py @@ -51,8 +51,8 @@ class DerivedStats(): self.handsplayers[player[1]]['position'] = 2 self.handsplayers[player[1]]['street0_3BChance'] = False self.handsplayers[player[1]]['street0_3BDone'] = False - self.handsplayers[player[1]]['street0_4BChance'] = False - self.handsplayers[player[1]]['street0_4BDone'] = False + self.handsplayers[player[1]]['street0_4BChance'] = False #FIXME: this might not actually be implemented + self.handsplayers[player[1]]['street0_4BDone'] = False #FIXME: this might not actually be implemented self.handsplayers[player[1]]['raiseFirstInChance'] = False self.handsplayers[player[1]]['raisedFirstIn'] = False self.handsplayers[player[1]]['foldBbToStealChance'] = False @@ -74,6 +74,8 @@ class DerivedStats(): self.handsplayers[player[1]]['foldToOtherRaisedStreet%d' %i] = False #FIXME - Everything below this point is incomplete. + self.handsplayers[player[1]]['other3BStreet0'] = False + self.handsplayers[player[1]]['other4BStreet0'] = False self.handsplayers[player[1]]['otherRaisedStreet0'] = False self.handsplayers[player[1]]['foldToOtherRaisedStreet0'] = False for i in range(1,5): diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index be5f6e99..79b27ce7 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -4039,6 +4039,10 @@ class Sql: startCards, street0_3BChance, street0_3BDone, + street0_4BChance, + street0_4BDone, + other3BStreet0, + other4BStreet0, otherRaisedStreet0, otherRaisedStreet1, otherRaisedStreet2, @@ -4096,7 +4100,7 @@ class Sql: %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, - %s + %s, %s, %s, %s, %s )""" ################################