Skip to content

Commit d974e9d

Browse files
authored
style(pobtrader): update constant naming to appease spellchecker gods (#5557)
1 parent 9c606da commit d974e9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Classes/TradeQuery.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ You can click this button to enter your POESESSID.
268268
on trade site to work on other leagues and realms)]]
269269
self.sortModes = {
270270
DPS = "DPS",
271-
DPSPRICE = "DPS / Price",
272-
PRICEASC = "Price (Lowest)",
271+
DPS_PRICE = "DPS / Price",
272+
PRICE_ASCENDING = "Price (Lowest)",
273273
WEIGHT = "Weighted Sum",
274274
}
275275
-- Item sort dropdown
276276
self.sortSelectionList = {
277277
self.sortModes.DPS,
278-
self.sortModes.DPSPRICE,
279-
self.sortModes.PRICEASC,
278+
self.sortModes.DPS_PRICE,
279+
self.sortModes.PRICE_ASCENDING,
280280
self.sortModes.WEIGHT,
281281
}
282282
self.controls.itemSortSelection = new("DropDownControl", {"TOPRIGHT", nil, "TOPRIGHT"}, -12, 19, 100, 18, self.sortSelectionList, function(index, value)
@@ -538,7 +538,7 @@ function TradeQueryClass:SortFetchResults(slotTbl, trade_index, mode)
538538
t_insert(newTbl, { outputAttr = dps, index = index })
539539
end
540540
table.sort(newTbl, function(a,b) return a.outputAttr > b.outputAttr end)
541-
elseif mode == self.sortModes.DPSPRICE then
541+
elseif mode == self.sortModes.DPS_PRICE then
542542
local dpsTable = getDpsTable()
543543
local priceTable = getPriceTable()
544544
if priceTable == nil then
@@ -548,7 +548,7 @@ function TradeQueryClass:SortFetchResults(slotTbl, trade_index, mode)
548548
t_insert(newTbl, { outputAttr = dps / priceTable[index], index = index })
549549
end
550550
table.sort(newTbl, function(a,b) return a.outputAttr > b.outputAttr end)
551-
elseif mode == self.sortModes.PRICEASC then
551+
elseif mode == self.sortModes.PRICE_ASCENDING then
552552
local priceTable = getPriceTable()
553553
if priceTable == nil then
554554
return nil, "MissingConversionRates"

0 commit comments

Comments
 (0)