Merge branch 'master' of git://git.assembla.com/donoban-fpdb

This commit is contained in:
Worros 2011-02-09 17:24:16 +08:00
commit 31b5604da6
4 changed files with 3659 additions and 13 deletions

View File

@ -1876,10 +1876,10 @@ class Sql:
cast(hp2.street0_3BDone as <signed>integer) AS TB_0, cast(hp2.street0_3BDone as <signed>integer) AS TB_0,
cast(hp2.street0_4BChance as <signed>integer) AS FB_opp_0, cast(hp2.street0_4BChance as <signed>integer) AS FB_opp_0,
cast(hp2.street0_4BDone as <signed>integer) AS FB_0, cast(hp2.street0_4BDone as <signed>integer) AS FB_0,
cast(hp2.street0_FoldTo3BChance as <signed>integer) AS TTB_opp_0, cast(hp2.street0_FoldTo3BChance as <signed>integer) AS F3B_opp_0,
cast(hp2.street0_FoldTo3BDone as <signed>integer) AS TTB_0, cast(hp2.street0_FoldTo3BDone as <signed>integer) AS F3B_0,
cast(hp2.street0_FoldTo4BChance as <signed>integer) AS FTB_opp_0, cast(hp2.street0_FoldTo4BChance as <signed>integer) AS F4B_opp_0,
cast(hp2.street0_FoldTo4BDone as <signed>integer) AS FTB_0, cast(hp2.street0_FoldTo4BDone as <signed>integer) AS F4B_0,
cast(hp2.street1Seen as <signed>integer) AS saw_f, cast(hp2.street1Seen as <signed>integer) AS saw_f,
cast(hp2.street1Seen as <signed>integer) AS saw_1, cast(hp2.street1Seen as <signed>integer) AS saw_1,
cast(hp2.street2Seen as <signed>integer) AS saw_2, cast(hp2.street2Seen as <signed>integer) AS saw_2,
@ -1987,10 +1987,10 @@ class Sql:
cast(hp2.street0_3BDone as <signed>integer) AS TB_0, cast(hp2.street0_3BDone as <signed>integer) AS TB_0,
cast(hp2.street0_4BChance as <signed>integer) AS FB_opp_0, cast(hp2.street0_4BChance as <signed>integer) AS FB_opp_0,
cast(hp2.street0_4BDone as <signed>integer) AS FB_0, cast(hp2.street0_4BDone as <signed>integer) AS FB_0,
cast(hp2.street0_FoldTo3BChance as <signed>integer) AS TB_opp_0, cast(hp2.street0_FoldTo3BChance as <signed>integer) AS F3B_opp_0,
cast(hp2.street0_FoldTo3BDone as <signed>integer) AS TB_0, cast(hp2.street0_FoldTo3BDone as <signed>integer) AS F3B_0,
cast(hp2.street0_FoldTo4BChance as <signed>integer) AS FB_opp_0, cast(hp2.street0_FoldTo4BChance as <signed>integer) AS F4B_opp_0,
cast(hp2.street0_FoldTo4BDone as <signed>integer) AS FB_0, cast(hp2.street0_FoldTo4BDone as <signed>integer) AS F4B_0,
cast(hp2.street1Seen as <signed>integer) AS saw_f, cast(hp2.street1Seen as <signed>integer) AS saw_f,
cast(hp2.street1Seen as <signed>integer) AS saw_1, cast(hp2.street1Seen as <signed>integer) AS saw_1,
cast(hp2.street2Seen as <signed>integer) AS saw_2, cast(hp2.street2Seen as <signed>integer) AS saw_2,

View File

@ -442,13 +442,13 @@ def three_B(stat_dict, player):
""" Three bet preflop/3rd.""" """ Three bet preflop/3rd."""
stat = 0.0 stat = 0.0
try: try:
stat = float(stat_dict[player]['Tb_0'])/float(stat_dict[player]['Tb_opp_0']) stat = float(stat_dict[player]['tb_0'])/float(stat_dict[player]['tb_opp_0'])
return (stat, return (stat,
'%3.1f' % (100.0*stat), '%3.1f' % (100.0*stat),
'3B=%3.1f%%' % (100.0*stat), '3B=%3.1f%%' % (100.0*stat),
'3B_pf=%3.1f%%' % (100.0*stat), '3B_pf=%3.1f%%' % (100.0*stat),
'(%d/%d)' % (stat_dict[player]['Tb_0'], stat_dict[player]['Tb_opp_0']), '(%d/%d)' % (stat_dict[player]['tb_0'], stat_dict[player]['tb_opp_0']),
_('% 4 Bet preflop/3rd')) _('% 3 Bet preflop/3rd'))
except: except:
return (stat, return (stat,
'NA', 'NA',
@ -461,12 +461,12 @@ def four_B(stat_dict, player):
""" Four bet preflop/4rd.""" """ Four bet preflop/4rd."""
stat = 0.0 stat = 0.0
try: try:
stat = float(stat_dict[player]['Fb_0'])/float(stat_dict[player]['Fb_opp_0']) stat = float(stat_dict[player]['fb_0'])/float(stat_dict[player]['fb_opp_0'])
return (stat, return (stat,
'%3.1f' % (100.0*stat), '%3.1f' % (100.0*stat),
'4B=%3.1f%%' % (100.0*stat), '4B=%3.1f%%' % (100.0*stat),
'4B_pf=%3.1f%%' % (100.0*stat), '4B_pf=%3.1f%%' % (100.0*stat),
'(%d/%d)' % (stat_dict[player]['Fb_0'], stat_dict[player]['Fb_opp_0']), '(%d/%d)' % (stat_dict[player]['fb_0'], stat_dict[player]['fb_opp_0']),
_('% 4 Bet preflop/4rd')) _('% 4 Bet preflop/4rd'))
except: except:
return (stat, return (stat,

Binary file not shown.

3646
pyfpdb/locale/fpdb-es_ES.po Normal file

File diff suppressed because it is too large Load Diff