comment out some broken code, add TODO for it
This commit is contained in:
parent
d95fcfe5d0
commit
66ac9b27d6
|
@ -760,38 +760,39 @@ def ffreq4(stat_dict, player):
|
||||||
|
|
||||||
if __name__== "__main__":
|
if __name__== "__main__":
|
||||||
c = Configuration.Config()
|
c = Configuration.Config()
|
||||||
db_connection = Database.Database(c)
|
#TODO: restore the below code. somehow it creates a version 119 DB but commenting this out makes it print a stat list
|
||||||
h = db_connection.get_last_hand()
|
#db_connection = Database.Database(c)
|
||||||
stat_dict = db_connection.get_stats_from_hand(h, "ring")
|
#h = db_connection.get_last_hand()
|
||||||
|
#stat_dict = db_connection.get_stats_from_hand(h, "ring")
|
||||||
|
|
||||||
for player in stat_dict.keys():
|
#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 = 'vpip')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'pfr')
|
#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 = 'wtsd')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'profit100')
|
#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 = 'saw_f')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'n')
|
#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 = 'fold_f')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'wmsd')
|
#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 = '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_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 = '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 = 'three_B')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'WMsF')
|
#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_freq1')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq2')
|
#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_freq3')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'a_freq4')
|
#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 = 'a_freq_123')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb1')
|
#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 = 'cb2')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'cb3')
|
#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 = 'cb4')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq1')
|
#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 = 'ffreq2')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq3')
|
#print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq3')
|
||||||
print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq4')
|
#print "player = ", player, do_stat(stat_dict, player = player, stat = 'ffreq4')
|
||||||
print "\n"
|
#print "\n"
|
||||||
|
|
||||||
print "\n\nLegal stats:"
|
print "\n\nLegal stats:"
|
||||||
print "(add _0 to name to display with 0 decimal places, _1 to display with 1, etc)\n"
|
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 " <pu_stat pu_stat_name = \"%s\"> </pu_stat>" % (attr)
|
# print " <pu_stat pu_stat_name = \"%s\"> </pu_stat>" % (attr)
|
||||||
print
|
print
|
||||||
|
|
||||||
db_connection.close_connection
|
#db_connection.close_connection
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user