@@ -112,7 +112,7 @@ def bid(q, api, playerList, settings):
112112 for item in api .searchAuctions ('player' , defId = defId , max_price = bidDetails [defId ]['maxBid' ]- subtract , start = 0 , page_size = 50 ):
113113 # player safety checks for every possible bid
114114 # Let's look at last 5 minutes for now and bid on 5 players max
115- if item ['expires' ] > 600 or bidon >= 5 or listed >= settings ['maxPlayer' ] or api .credits < settings ['minCredits' ]:
115+ if item ['expires' ] > 300 or bidon >= 5 or listed >= settings ['maxPlayer' ] or api .credits < settings ['minCredits' ]:
116116 break
117117
118118 # No Dups
@@ -165,6 +165,9 @@ def bid(q, api, playerList, settings):
165165 displayName = asset ['Item' ]['CommonName' ] if asset ['Item' ]['CommonName' ] else asset ['Item' ]['LastName' ]
166166 card = PlayerCard (item , displayName )
167167
168+ # Update the card, regardless what will happen
169+ q .put ((card , EventType .UPDATE , api .credits ))
170+
168171 # Handle Expired Items
169172 if item ['expires' ] == - 1 :
170173 if (item ['bidState' ] == 'highest' or (item ['tradeState' ] == 'closed' and item ['bidState' ] == 'buyNow' )):
@@ -221,9 +224,6 @@ def bid(q, api, playerList, settings):
221224 else :
222225 q .put ('%s Bid Error: You are not allowed to bid on this trade\n ' % (time .strftime ('%Y-%m-%d %H:%M:%S' )))
223226
224- else :
225- q .put ((card , EventType .UPDATE , api .credits ))
226-
227227 # buy now goes directly to unassigned now
228228 if binWon :
229229 for item in api .unassigned ():
0 commit comments