Skip to content

Commit

Permalink
use baseId
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterjm committed Oct 1, 2016
1 parent 90e2afd commit 3efd768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frames/bid.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def checkQueue(self):
self.auctionStatus.update_status(msg[0], time.strftime('%Y-%m-%d %H:%M:%S'), msg[0].currentBid, tag='lost')
elif (msg[1] == EventType.BIDWON or msg[1] == EventType.BIN):
self.auctionStatus.update_status(msg[0], time.strftime('%Y-%m-%d %H:%M:%S'), msg[0].currentBid, tag='won')
defId = str(abs(msg[0].resourceId + 0x80000000))
defId = str(self.controller.api.baseId(msg[0].resourceId))
self.tree.set(defId, 'won', int(self.tree.set(defId, 'won'))+1)
elif msg[1] == EventType.SELLING:
self.auctionStatus.update_status(msg[0], time.strftime('%Y-%m-%d %H:%M:%S'), msg[0].currentBid, tag='selling')
Expand Down

0 comments on commit 3efd768

Please sign in to comment.