From cf2c7e42670193f9da9ff6c086221156f3a63960 Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 30 Oct 2008 00:03:28 -0400 Subject: [PATCH] add lines with "($0 in chips)" to list of things to ignore, as a player with no chips cannot possibly be in the hand, and the lines often contain blank usernames on p4e, which are breaking the parser. --- pyfpdb/fpdb_simple.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/fpdb_simple.py b/pyfpdb/fpdb_simple.py index 217b9163..ab442d85 100644 --- a/pyfpdb/fpdb_simple.py +++ b/pyfpdb/fpdb_simple.py @@ -330,6 +330,8 @@ def filterCrap(site, hand, isTourney): toRemove.append(hand[i]) elif (hand[i].find(" out of hand ")!=-1): hand[i]=hand[i][:-56] + elif (hand[i].find("($0 in chips)") != -1): + toRemove.append(hand[i]) elif (hand[i]=="*** HOLE CARDS ***"): toRemove.append(hand[i]) elif (hand[i].endswith("has been disconnected")):