Fixed the loop in storeHudCache so that it only changes boolean to 1/0 when its True/False
This commit is contained in:
parent
710fc924bf
commit
27446659f9
|
@ -208,6 +208,8 @@ DATABASE_TYPES = (
|
||||||
)
|
)
|
||||||
|
|
||||||
LOCALE_ENCODING = locale.getdefaultlocale()[1]
|
LOCALE_ENCODING = locale.getdefaultlocale()[1]
|
||||||
|
if not LOCALE_ENCODING:
|
||||||
|
LOCALE_ENCODING = locale.getpreferredencoding()
|
||||||
#LOCALE_ENCODING = locale.getpreferredencoding() #this breaks on Mac OSX - please leave this comment
|
#LOCALE_ENCODING = locale.getpreferredencoding() #this breaks on Mac OSX - please leave this comment
|
||||||
if LOCALE_ENCODING == "US-ASCII":
|
if LOCALE_ENCODING == "US-ASCII":
|
||||||
print _("Default encoding set to US-ASCII, defaulting to CP1252 instead -- If you're not on a Mac, please report this problem.")
|
print _("Default encoding set to US-ASCII, defaulting to CP1252 instead -- If you're not on a Mac, please report this problem.")
|
||||||
|
|
|
@ -2211,8 +2211,8 @@ class Database:
|
||||||
hc['tourneyTypeId'] = pdata[p]['tourneyTypeId']
|
hc['tourneyTypeId'] = pdata[p]['tourneyTypeId']
|
||||||
hc['styleKey'] = styleKey
|
hc['styleKey'] = styleKey
|
||||||
for i in range(len(line)):
|
for i in range(len(line)):
|
||||||
if line[i]: line[i] = 1
|
if line[i]==True: line[i] = 1
|
||||||
else: line[i] = 0
|
if line[i]==False: line[i] = 0
|
||||||
hc['line'] = line
|
hc['line'] = line
|
||||||
hc['game'] = [hc['gametypeId']
|
hc['game'] = [hc['gametypeId']
|
||||||
,hc['playerId']
|
,hc['playerId']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user