p56 - various fixes to get FTP working again

fixed in prev commit: sometimes truncuates position on store in tourneys
This commit is contained in:
steffen123
2008-08-18 09:05:22 +01:00
parent b546868e10
commit 660530a166
4 changed files with 27 additions and 14 deletions
+5 -3
View File
@@ -90,11 +90,13 @@ def mainParser(db, cursor, site, category, hand):
elif (lineTypes[i]=="ante"):
fpdb_simple.parseAnteLine(hand[i], site, names, antes)
elif (lineTypes[i]=="table"):
result=fpdb_simple.parseTableLine(hand[i])
maxSeats=result['maxSeats']
tableName=result['tableName']
tableResult=fpdb_simple.parseTableLine(site, hand[i])
else:
raise fpdb_simple.FpdbError("unrecognised lineType:"+lineTypes[i])
if site=="ftp":
tableResult=fpdb_simple.parseTableLine(site, hand[0])
maxSeats=tableResult['maxSeats']
tableName=tableResult['tableName']
#part 5: final preparations, then call fpdb_save_to_db.saveHoldem with
# the arrays as they are - that file will fill them.