renamed totalRebuys/AddOns to totalRebuyCount/AddOnCount
This commit is contained in:
parent
d83c68d578
commit
e6fd3afbba
|
@ -356,8 +356,8 @@ tourneys_table = Table('Tourneys', metadata,
|
||||||
Column('tourneyName', String(40)), # varchar(40)
|
Column('tourneyName', String(40)), # varchar(40)
|
||||||
# Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn
|
# Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn
|
||||||
Column('matrixIdProcessed',SmallInteger, default=0), # TINYINT UNSIGNED DEFAULT 0
|
Column('matrixIdProcessed',SmallInteger, default=0), # TINYINT UNSIGNED DEFAULT 0
|
||||||
Column('totalRebuys', Integer, default=0), # INT DEFAULT 0
|
Column('totalRebuyCount', Integer, default=0), # INT DEFAULT 0
|
||||||
Column('totalAddons', Integer, default=0), # INT DEFAULT 0
|
Column('totalAddOnCount', Integer, default=0), # INT DEFAULT 0
|
||||||
Column('comment', Text), # TEXT
|
Column('comment', Text), # TEXT
|
||||||
Column('commentTs', DateTime), # DATETIME
|
Column('commentTs', DateTime), # DATETIME
|
||||||
mysql_charset='utf8',
|
mysql_charset='utf8',
|
||||||
|
|
|
@ -582,8 +582,8 @@ class Fulltilt(HandHistoryConverter):
|
||||||
"PRIZEPOOL" : "prizepool",
|
"PRIZEPOOL" : "prizepool",
|
||||||
"REBUY_AMOUNT" : "rebuyAmount",
|
"REBUY_AMOUNT" : "rebuyAmount",
|
||||||
"ADDON_AMOUNT" : "addOnAmount",
|
"ADDON_AMOUNT" : "addOnAmount",
|
||||||
"REBUY_TOTAL" : "totalRebuys",
|
"REBUY_TOTAL" : "totalRebuyCount",
|
||||||
"ADDONS_TOTAL" : "totalAddOns",
|
"ADDONS_TOTAL" : "totalAddOnCount",
|
||||||
"REBUY_CHIPS" : "rebuyChips",
|
"REBUY_CHIPS" : "rebuyChips",
|
||||||
"ADDON_CHIPS" : "addOnChips",
|
"ADDON_CHIPS" : "addOnChips",
|
||||||
"STARTTIME" : "starttime",
|
"STARTTIME" : "starttime",
|
||||||
|
|
|
@ -423,8 +423,8 @@ class Sql:
|
||||||
endTime DATETIME,
|
endTime DATETIME,
|
||||||
tourneyName varchar(40),
|
tourneyName varchar(40),
|
||||||
matrixIdProcessed TINYINT UNSIGNED DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */
|
matrixIdProcessed TINYINT UNSIGNED DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */
|
||||||
totalRebuys INT DEFAULT 0,
|
totalRebuyCount INT DEFAULT 0,
|
||||||
totalAddons INT DEFAULT 0,
|
totalAddOnCount INT DEFAULT 0,
|
||||||
comment TEXT,
|
comment TEXT,
|
||||||
commentTs DATETIME)
|
commentTs DATETIME)
|
||||||
ENGINE=INNODB"""
|
ENGINE=INNODB"""
|
||||||
|
@ -439,8 +439,8 @@ class Sql:
|
||||||
endTime timestamp without time zone,
|
endTime timestamp without time zone,
|
||||||
tourneyName varchar(40),
|
tourneyName varchar(40),
|
||||||
matrixIdProcessed SMALLINT DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */
|
matrixIdProcessed SMALLINT DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */
|
||||||
totalRebuys INT DEFAULT 0,
|
totalRebuyCount INT DEFAULT 0,
|
||||||
totalAddons INT DEFAULT 0,
|
totalAddOnCount INT DEFAULT 0,
|
||||||
comment TEXT,
|
comment TEXT,
|
||||||
commentTs timestamp without time zone)"""
|
commentTs timestamp without time zone)"""
|
||||||
elif db_server == 'sqlite':
|
elif db_server == 'sqlite':
|
||||||
|
@ -454,8 +454,8 @@ class Sql:
|
||||||
endTime REAL,
|
endTime REAL,
|
||||||
tourneyName TEXT,
|
tourneyName TEXT,
|
||||||
matrixIdProcessed INT UNSIGNED DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */
|
matrixIdProcessed INT UNSIGNED DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */
|
||||||
totalRebuys INT DEFAULT 0,
|
totalRebuyCount INT DEFAULT 0,
|
||||||
totalAddons INT DEFAULT 0,
|
totalAddOnCount INT DEFAULT 0,
|
||||||
comment TEXT,
|
comment TEXT,
|
||||||
commentTs REAL)"""
|
commentTs REAL)"""
|
||||||
################################
|
################################
|
||||||
|
@ -3598,8 +3598,8 @@ class Sql:
|
||||||
t.endTime,
|
t.endTime,
|
||||||
t.tourneyName,
|
t.tourneyName,
|
||||||
t.matrixIdProcessed,
|
t.matrixIdProcessed,
|
||||||
t.totalRebuys,
|
t.totalRebuyCount,
|
||||||
t.totalAddons,
|
t.totalAddOnCount,
|
||||||
t.comment
|
t.comment
|
||||||
FROM Tourneys t
|
FROM Tourneys t
|
||||||
INNER JOIN TourneyTypes tt ON (t.tourneyTypeId = tt.id)
|
INNER JOIN TourneyTypes tt ON (t.tourneyTypeId = tt.id)
|
||||||
|
@ -3609,7 +3609,7 @@ class Sql:
|
||||||
self.query['insertTourney'] = """INSERT INTO Tourneys
|
self.query['insertTourney'] = """INSERT INTO Tourneys
|
||||||
(tourneyTypeId, siteTourneyNo, entries, prizepool,
|
(tourneyTypeId, siteTourneyNo, entries, prizepool,
|
||||||
startTime, endTime, tourneyName, matrixIdProcessed,
|
startTime, endTime, tourneyName, matrixIdProcessed,
|
||||||
totalRebuys, totalAddons, comment, commentTs)
|
totalRebuyCount, totalAddOnCount, comment, commentTs)
|
||||||
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s,
|
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s,
|
||||||
%s, %s)
|
%s, %s)
|
||||||
"""
|
"""
|
||||||
|
@ -3622,8 +3622,8 @@ class Sql:
|
||||||
endTime = %s,
|
endTime = %s,
|
||||||
tourneyName = %s,
|
tourneyName = %s,
|
||||||
matrixIdProcessed = %s,
|
matrixIdProcessed = %s,
|
||||||
totalRebuys = %s,
|
totalRebuyCount = %s,
|
||||||
totalAddons = %s,
|
totalAddonCount = %s,
|
||||||
comment = %s,
|
comment = %s,
|
||||||
commentTs = %s
|
commentTs = %s
|
||||||
WHERE id=%s
|
WHERE id=%s
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
#Copyright 2009 Stephane Alessio
|
#Copyright 2009 Stephane Alessio
|
||||||
#This program is free software: you can redistribute it and/or modify
|
#This program is free software: you can redistribute it and/or modify
|
||||||
|
@ -73,10 +74,10 @@ class Tourney(object):
|
||||||
self.subTourneyFee = None
|
self.subTourneyFee = None
|
||||||
self.rebuyChips = 0
|
self.rebuyChips = 0
|
||||||
self.addOnChips = 0
|
self.addOnChips = 0
|
||||||
self.rebuyAmount = 0
|
self.rebuyAmount = 0
|
||||||
self.addOnAmount = 0
|
self.addOnAmount = 0
|
||||||
self.totalRebuys = 0
|
self.totalRebuyCount = 0
|
||||||
self.totalAddOns = 0
|
self.totalAddOnCount = 0
|
||||||
self.koBounty = 0
|
self.koBounty = 0
|
||||||
self.tourneyComment = None
|
self.tourneyComment = None
|
||||||
self.players = []
|
self.players = []
|
||||||
|
@ -121,8 +122,8 @@ class Tourney(object):
|
||||||
("ADDON CHIPS", self.addOnChips),
|
("ADDON CHIPS", self.addOnChips),
|
||||||
("REBUY AMOUNT", self.rebuyAmount),
|
("REBUY AMOUNT", self.rebuyAmount),
|
||||||
("ADDON AMOUNT", self.addOnAmount),
|
("ADDON AMOUNT", self.addOnAmount),
|
||||||
("TOTAL REBUYS", self.totalRebuys),
|
("TOTAL REBUYS", self.totalRebuyCount),
|
||||||
("TOTAL ADDONS", self.totalAddOns),
|
("TOTAL ADDONS", self.totalAddOnCount),
|
||||||
("KO BOUNTY", self.koBounty),
|
("KO BOUNTY", self.koBounty),
|
||||||
("TOURNEY COMMENT", self.tourneyComment)
|
("TOURNEY COMMENT", self.tourneyComment)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user