From 66ac9b27d6f84e6fcfec4c86b6216b04d6d4fe6f Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 16 Jul 2010 21:33:36 +0200 Subject: [PATCH] comment out some broken code, add TODO for it --- pyfpdb/Stats.py | 65 +++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/pyfpdb/Stats.py b/pyfpdb/Stats.py index ea3d33bb..72af0bb0 100755 --- a/pyfpdb/Stats.py +++ b/pyfpdb/Stats.py @@ -760,38 +760,39 @@ def ffreq4(stat_dict, player): if __name__== "__main__": c = Configuration.Config() - db_connection = Database.Database(c) - h = db_connection.get_last_hand() - stat_dict = db_connection.get_stats_from_hand(h, "ring") + #TODO: restore the below code. somehow it creates a version 119 DB but commenting this out makes it print a stat list + #db_connection = Database.Database(c) + #h = db_connection.get_last_hand() + #stat_dict = db_connection.get_stats_from_hand(h, "ring") - for player in stat_dict.keys(): - print "player = ", player, do_stat(stat_dict, player = player, stat = 'vpip') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'pfr') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'wtsd') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'profit100') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'saw_f') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'n') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'fold_f') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'wmsd') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'steal') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'f_SB_steal') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'f_BB_steal') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'three_B') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'WMsF') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq1') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq2') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq3') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq4') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq_123') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb1') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb2') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb3') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb4') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq1') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq2') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq3') - print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq4') - print "\n" + #for player in stat_dict.keys(): + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'vpip') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'pfr') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'wtsd') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'profit100') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'saw_f') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'n') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'fold_f') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'wmsd') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'steal') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'f_SB_steal') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'f_BB_steal') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'three_B') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'WMsF') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq1') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq2') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq3') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq4') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq_123') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb1') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb2') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb3') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb4') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq1') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq2') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq3') + #print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq4') + #print "\n" print "\n\nLegal stats:" print "(add _0 to name to display with 0 decimal places, _1 to display with 1, etc)\n" @@ -804,5 +805,5 @@ if __name__== "__main__": # print " " % (attr) print - db_connection.close_connection + #db_connection.close_connection