Skip to content

Commit acbabdf

Browse files
committed
Relist cards even if they are not in the current list
1 parent f8e37aa commit acbabdf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/bid.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ def bid(q, api, playerList, settings):
277277
binPrice = i['buyNowPrice'] if settings['relistAll'] else bidDetails[baseId]['binPrice']
278278
if i['tradeState'] == 'expired' and sell and binPrice:
279279
api.sell(i['id'], sell, binPrice)
280+
elif i['tradeState'] == 'expired':
281+
# If we don't follow this player, then just relist it with the same price
282+
asset = api.cardInfo(i['resourceId'])
283+
displayName = asset['Item']['CommonName'] if asset['Item']['CommonName'] else asset['Item']['LastName']
284+
q.put('%s Re-listing %s at the same price. (Player not in target list)\n' % (time.strftime('%Y-%m-%d %H:%M:%S'), displayName))
285+
api.sell(i['id'], i['startingBid'], i['buyNowPrice'])
280286

281287
# Log sold items
282288
sold = sum([i['tradeState'] == 'closed' for i in tradepile])

0 commit comments

Comments
 (0)