fix error i made in convertcards
This commit is contained in:
parent
388525ed30
commit
1653dcf34c
|
@ -147,9 +147,9 @@ class Database:
|
||||||
cards = ""
|
cards = ""
|
||||||
for i in xrange(1, 8):
|
for i in xrange(1, 8):
|
||||||
cv = "card%dValue" % i
|
cv = "card%dValue" % i
|
||||||
if d[cv] == None:
|
if cv not in d:
|
||||||
break
|
break
|
||||||
elif d[cv] == 0:
|
elif d[cv] == 0 or d[cv] == None:
|
||||||
cards = "%sxx" % cards
|
cards = "%sxx" % cards
|
||||||
else:
|
else:
|
||||||
cs = "card%dSuit" % i
|
cs = "card%dSuit" % i
|
||||||
|
|
Loading…
Reference in New Issue
Block a user