From 07d2d5733c0c80fd79eedb20ae3f35fc7d018639 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 10 Mar 2011 18:03:21 +0800 Subject: [PATCH] TourneySummary: SQLite complaining about Decimal format. Variables were already passed in as int - allow them to remain so --- pyfpdb/TourneySummary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/TourneySummary.py b/pyfpdb/TourneySummary.py index 5d44fc86..813d309d 100644 --- a/pyfpdb/TourneySummary.py +++ b/pyfpdb/TourneySummary.py @@ -245,13 +245,13 @@ class TourneySummary(object): Adds a player to the tourney, and initialises data structures indexed by player. rank (int) indicating the finishing rank (can be -1 if unknown) name (string) player name -winnings (decimal) the money the player ended the tourney with (can be 0, or -1 if unknown) +winnings (int) the money the player ended the tourney with (can be 0, or -1 if unknown) """ log.debug(_("addPlayer: rank:%s - name : '%s' - Winnings (%s)") % (rank, name, winnings)) self.players.append(name) if rank: - self.ranks.update( { name : Decimal(rank) } ) - self.winnings.update( { name : Decimal(winnings) } ) + self.ranks.update( { name : rank } ) + self.winnings.update( { name : winnings } ) self.winningsCurrency.update( { name : winningsCurrency } ) else: self.ranks.update( { name : None } )