fix error i made in convertcards

This commit is contained in:
eblade 2009-03-10 20:19:33 -04:00
parent 388525ed30
commit 1653dcf34c

View File

@ -147,9 +147,9 @@ class Database:
cards = ""
for i in xrange(1, 8):
cv = "card%dValue" % i
if d[cv] == None:
if cv not in d:
break
elif d[cv] == 0:
elif d[cv] == 0 or d[cv] == None:
cards = "%sxx" % cards
else:
cs = "card%dSuit" % i