extended search signature, added green price indicator for your high bids in search, working on changing the day interval implementation in history
This commit is contained in:
+2
-2
@@ -182,9 +182,9 @@ local methods = {
|
||||
-- GetRowPrices = function(record, isPerUnit) return end, -- TODO
|
||||
GetRowPrices = function(record, per_unit)
|
||||
if per_unit then
|
||||
return ceil(record.unit_bid_price), ceil(record.unit_buyout_price)
|
||||
return ceil(record.unit_bid_price), ceil(record.unit_buyout_price), record.high_bidder and '|cff16ff16'
|
||||
else
|
||||
return record.bid_price, record.buyout_price
|
||||
return record.bid_price, record.buyout_price, record.high_bidder and '|cff16ff16'
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
@@ -3,6 +3,14 @@ Aux.history = public
|
||||
|
||||
private.PUSH_INTERVAL = 57600
|
||||
|
||||
function private.hours_left_in_day()
|
||||
return 24 - tonumber(date('%H'))
|
||||
end
|
||||
|
||||
function private.time_until_next_push()
|
||||
return time() + private.hours_left_in_day * 3600
|
||||
end
|
||||
|
||||
function private.new_record()
|
||||
return { next_push = time() + private.PUSH_INTERVAL, market_values = {} }
|
||||
end
|
||||
|
||||
@@ -130,7 +130,7 @@ function public.auction(index, type)
|
||||
hyperlink = hyperlink,
|
||||
itemstring = item_info.itemstring,
|
||||
item_key = item_id..':'..suffix_id,
|
||||
search_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, bid_price, aux_quantity, duration, owner or ''}, ':'),
|
||||
search_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, bid_price, aux_quantity, duration, high_bidder and 1 or 0, owner or '?'}, ':'),
|
||||
|
||||
name = name,
|
||||
texture = texture,
|
||||
|
||||
Reference in New Issue
Block a user