filterCrap after checking if hand is in db

refactor GuiBulkImport : add main() so that it can be called from
interactive shell (for profiling purposes).
This commit is contained in:
Matt Turnbull
2009-03-21 15:34:23 +00:00
parent 451a9b3ab1
commit 239330ae7b
4 changed files with 31 additions and 13 deletions
+2
View File
@@ -65,6 +65,8 @@ def mainParser(backend, db, cursor, site, category, hand, config):
tourneyTypeId=fpdb_simple.recogniseTourneyTypeId(cursor, siteID, buyin, fee, knockout, rebuyOrAddon)
fpdb_simple.isAlreadyInDB(cursor, gametypeID, siteHandNo)
hand=fpdb_simple.filterCrap(site, hand, isTourney)
#part 2: classify lines by type (e.g. cards, action, win, sectionchange) and street
fpdb_simple.classifyLines(hand, category, lineTypes, lineStreets)