From 6879815320b55cc21b65242160ae7bead5fb2c61 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Wed, 20 Aug 2008 22:47:43 +0100 Subject: [PATCH] p64 - fixed bug that HUD displayed wrong raw data for aggr river/6th even though it used the right numbers for calculating the % value attempted to fix W$wsF in HUD but didnt work made default interval for auto import a more sensible 10s --- docs/known-bugs-and-planned-features.txt | 1 + pyfpdb/Stats.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/known-bugs-and-planned-features.txt b/docs/known-bugs-and-planned-features.txt index 81748231..2feb12ac 100644 --- a/docs/known-bugs-and-planned-features.txt +++ b/docs/known-bugs-and-planned-features.txt @@ -4,6 +4,7 @@ Please also see db-todo.txt alpha2 (release by 17Aug) ====== +W$wsF doesnt work in HUD auto import only runs on one file per start set hud stats default row1: hands, VPIP, PFR, PF3B/4B, ST row2: Aggr% (postflop), Fold% (postflop), W$sF, WtSD, W$@SD make windows use correct language version of Appdata, e.g. Anwendungdaten diff --git a/pyfpdb/Stats.py b/pyfpdb/Stats.py index 4f989898..96ddd5ad 100644 --- a/pyfpdb/Stats.py +++ b/pyfpdb/Stats.py @@ -293,12 +293,12 @@ def three_B_0(stat_dict, player): def WMsF(stat_dict, player): stat = 0.0 try: - stat = stat_dict[player]['w_w_s_1']/stat_dict[player]['saw_f'] + stat = stat_dict[player]['w_w_s_1']/stat_dict[player]['saw_1'] return (stat, '%3.1f' % (100*stat) + '%', 'wf=%3.1f' % (100*stat) + '%', 'w_w_f=%3.1f' % (100*stat) + '%', - '(%d/%d)' % (stat_dict[player]['w_w_s_1'], stat_dict[player]['saw_f']), + '(%d/%d)' % (stat_dict[player]['w_w_s_1'], stat_dict[player]['saw_1']), '% won$/saw flop/4th' ) except: @@ -358,7 +358,7 @@ def a_freq_3(stat_dict, player): '%3.1f' % (100*stat) + '%', 'a3=%3.1f' % (100*stat) + '%', 'a_fq_3=%3.1f' % (100*stat) + '%', - '(%d/%d)' % (stat_dict[player]['aggr_1'], stat_dict[player]['saw_1']), + '(%d/%d)' % (stat_dict[player]['aggr_3'], stat_dict[player]['saw_3']), 'Aggression Freq river/6th' ) except: