Winamax: Reduce size of tourney hids
The max size of a MySQL unsigned bigint is 9223372036854775808 Winamax hand.handid was a lot larger than that. Reduce the size if the nummber is 19 digits long.
This commit is contained in:
parent
b39637866c
commit
8339ad1da6
|
@ -222,6 +222,8 @@ class Winamax(HandHistoryConverter):
|
|||
if key == 'HID1':
|
||||
# Need to remove non-alphanumerics for MySQL
|
||||
hand.handid = "1%.9d%s%s"%(int(info['HID2']),info['HID1'],info['HID3'])
|
||||
if len (hand.handid) > 19:
|
||||
hand.handid = "%s" % info['HID1']
|
||||
if key == 'TOURNO':
|
||||
hand.tourNo = info[key]
|
||||
if key == 'TABLE':
|
||||
|
|
Loading…
Reference in New Issue
Block a user