some history bugfixes

This commit is contained in:
Manuel Simon Hirsig
2016-02-09 23:27:33 +01:00
parent 3b2283f045
commit 18c8afb550
2 changed files with 4 additions and 18 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ function m.validator(filter)
end
if filter.max_percent and (record.unit_buyout_price == 0
or not Aux.history.value(record.item_key)
or record.unit_buyout_price / Aux.history.conservative_value(record.item_key) * 100 > filter.max_percent)
or record.unit_buyout_price / Aux.history.value(record.item_key) * 100 > filter.max_percent)
then
return
end