From aebbae8ed0f859a427c0f83cfd21659349ff517b Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 23 Mar 2009 22:58:13 -0400 Subject: [PATCH] Change str 0 to int 0 in card translating. --- pyfpdb/fpdb_simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/fpdb_simple.py b/pyfpdb/fpdb_simple.py index 27ce23da..4f5fb4d1 100644 --- a/pyfpdb/fpdb_simple.py +++ b/pyfpdb/fpdb_simple.py @@ -514,7 +514,7 @@ def convertCardValues(arr): #end def convertCardValues # a 0-card is one in a stud game that we did not see or was not shown -card_map = { "0": 0, "2": 2, "3" : 3, "4" : 4, "5" : 5, "6" : 6, "7" : 7, "8" : 8, "9" : 9, "T" : 10, "J" : 11, "Q" : 12, "K" : 13, "A" : 14} +card_map = { 0: 0, "2": 2, "3" : 3, "4" : 4, "5" : 5, "6" : 6, "7" : 7, "8" : 8, "9" : 9, "T" : 10, "J" : 11, "Q" : 12, "K" : 13, "A" : 14} #converts the strings in the given array to ints (changes the passed array, no returning). see table design for conversion details def convertCardValuesBoard(arr):