Doubled viator product's rating.

This commit is contained in:
VladiMihaylenko 2017-12-06 17:53:30 +03:00 committed by Ilya Grechuhin
parent c878bfdece
commit 48c5967ba2

View file

@ -165,6 +165,9 @@ void MakeProducts(std::string const & src, std::vector<Product> & products)
FromJSONObject(item, "currencyCode", product.m_currency);
FromJSONObject(item, "thumbnailHiResURL", product.m_photoUrl);
FromJSONObject(item, "webURL", product.m_pageUrl);
// Rescale rating to [0.0; 10.0] range
product.m_rating *= 2;
products.push_back(move(product));
}
}