imports still playing tourney's TP, but not winnings of finishers
This commit is contained in:
+8
-3
@@ -2043,9 +2043,14 @@ class Database:
|
||||
(hand.tourneyId, playerId, None, None, None, None, None, None))
|
||||
elif source=="TS":
|
||||
#print "all values: tourneyId",hand.tourneyId, "playerId",playerId, "rank",hand.ranks[player], "winnings",hand.winnings[player], "winCurr",hand.winningsCurrency[player], hand.rebuyCounts[player], hand.addOnCounts[player], hand.koCounts[player]
|
||||
cursor.execute (self.sql.query['insertTourneysPlayer'].replace('%s', self.sql.query['placeholder']),
|
||||
(hand.tourneyId, playerId, int(hand.ranks[player]), int(hand.winnings[player]), hand.winningsCurrency[player],
|
||||
hand.rebuyCounts[player], hand.addOnCounts[player], hand.koCounts[player]))
|
||||
if hand.ranks[player]:
|
||||
cursor.execute (self.sql.query['insertTourneysPlayer'].replace('%s', self.sql.query['placeholder']),
|
||||
(hand.tourneyId, playerId, int(hand.ranks[player]), int(hand.winnings[player]), hand.winningsCurrency[player],
|
||||
hand.rebuyCounts[player], hand.addOnCounts[player], hand.koCounts[player]))
|
||||
else:
|
||||
cursor.execute (self.sql.query['insertTourneysPlayer'].replace('%s', self.sql.query['placeholder']),
|
||||
(hand.tourneyId, playerId, None, None, None,
|
||||
hand.rebuyCounts[player], hand.addOnCounts[player], hand.koCounts[player]))
|
||||
tourneysPlayersIds.append(self.get_last_insert_id(cursor))
|
||||
return tourneysPlayersIds
|
||||
#end def createOrUpdateTourneysPlayers
|
||||
|
||||
Reference in New Issue
Block a user