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:
Manuel Simon Hirsig
2016-02-12 01:38:44 +01:00
parent bb5c411fc2
commit 28d456e5f3
3 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -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,
+8
View File
@@ -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
+1 -1
View File
@@ -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,