greatly simplified history

This commit is contained in:
Manuel Simon Hirsig
2016-02-08 21:43:40 +01:00
parent ab11da7039
commit a19eec7758
12 changed files with 126 additions and 178 deletions
+2 -2
View File
@@ -292,8 +292,8 @@ function m.validator(filter)
return
end
if filter.max_percent and (record.unit_buyout_price == 0
or not Aux.history.market_value(record.item_key)
or record.unit_buyout_price / Aux.history.market_value(record.item_key) * 100 > filter.max_percent)
or not Aux.history.value(record.item_key)
or record.unit_buyout_price / Aux.history.value(record.item_key) * 100 > filter.max_percent)
then
return
end