From b023a9404cc80335022d33c0d9a10178a40c5088 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 30 Jan 2009 02:18:19 +0900 Subject: [PATCH 1/2] Quick commit to add the failing Full Tilt HH Header Only as a comment for now. Need to pull together all the valid Full Tilt HH lines so we can write a decent regex to match --- pyfpdb/fpdb_simple.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/fpdb_simple.py b/pyfpdb/fpdb_simple.py index e97102dd..6d018f45 100644 --- a/pyfpdb/fpdb_simple.py +++ b/pyfpdb/fpdb_simple.py @@ -1158,6 +1158,8 @@ def parseHandStartTime(topline, site): isUTC=False if site=="ftp": + # Full Tilt Sit'n'Go + # Full Tilt Poker Game #10311865543: $1 + $0.25 Sit & Go (78057629), Table 1 - 25/50 - No Limit Hold'em - 0:07:45 ET - 2009/01/29 pos = topline.find(" ", len(topline)-26)+1 tmp = topline[pos:] #print "year:", tmp[14:18], "month", tmp[19:21], "day", tmp[22:24], "hour", tmp[0:2], "minute", tmp[3:5], "second", tmp[6:8] From 9cd88c0399d591942aef1372414176b1207b2218 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 30 Jan 2009 13:23:09 +0900 Subject: [PATCH 2/2] Comment patch: FTP HH headers --- pyfpdb/fpdb_simple.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyfpdb/fpdb_simple.py b/pyfpdb/fpdb_simple.py index 6d018f45..76c07187 100644 --- a/pyfpdb/fpdb_simple.py +++ b/pyfpdb/fpdb_simple.py @@ -1158,8 +1158,12 @@ def parseHandStartTime(topline, site): isUTC=False if site=="ftp": + # TODO: Turn this into a regex that matches the following # Full Tilt Sit'n'Go # Full Tilt Poker Game #10311865543: $1 + $0.25 Sit & Go (78057629), Table 1 - 25/50 - No Limit Hold'em - 0:07:45 ET - 2009/01/29 + # Cash Game: + # Full Tilt Poker Game #9403951181: Table CR - tay - $0.05/$0.10 - No Limit Hold'em - 9:40:20 ET - 2008/12/09 + # Full Tilt Poker Game #9468383505: Table Bike (deep 6) - $0.05/$0.10 - No Limit Hold'em - 5:09:36 ET - 2008/12/13 pos = topline.find(" ", len(topline)-26)+1 tmp = topline[pos:] #print "year:", tmp[14:18], "month", tmp[19:21], "day", tmp[22:24], "hour", tmp[0:2], "minute", tmp[3:5], "second", tmp[6:8]