More for Flop_Mucked with 0-52 encoding.

This commit is contained in:
Ray
2009-06-19 15:51:56 -04:00
parent e00887b865
commit a307081574
2 changed files with 10 additions and 19 deletions
+2 -6
View File
@@ -170,12 +170,8 @@ class Database:
cards = {}
c = self.connection.cursor()
c.execute(self.sql.query['get_common_cards'], [hand])
colnames = [desc[0] for desc in c.description]
for row in c.fetchall():
s_dict = {}
for name, val in zip(colnames, row):
s_dict[name] = val
cards['common'] = (self.convert_cards(s_dict))
# row = c.fetchone()
cards['common'] = c.fetchone()
return cards
def convert_cards(self, d):