Ignore items with only 1 historic price
This commit is contained in:
parent
220fa4e5cc
commit
e850da0dcc
@ -119,7 +119,7 @@ namespace MarketPriceLookup.Common.Helpers
|
|||||||
|
|
||||||
if (filteredPrices.Count == 1)
|
if (filteredPrices.Count == 1)
|
||||||
{
|
{
|
||||||
return filteredPrices[0].price;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var prices = filteredPrices.Select(x => (double)x.price).ToArray();
|
var prices = filteredPrices.Select(x => (double)x.price).ToArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user