diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 11038a68..4abac8ec 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -149,7 +149,7 @@ class Database: cv = "card%dValue" % i if cv not in d or d[cv] == None: break - elif d[key] == 0: + elif d[cv] == 0: cards += "xx" else: cs = "card%dSuit" % i