Getting price without thousand separator

This commit is contained in:
Felipe Martín 2015-06-24 08:30:53 +02:00
parent 4254284ef8
commit 4e4bfa17ee
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class AmazonBaseCrawler(object):
price_and_currency = product.price_and_currency
result.append({
'shop_product_id': product.asin,
'price': price_and_currency[0],
'price': price_and_currency[0].replace(',', ''),
'currency': price_and_currency[1],
})
sleep(1)
@ -46,7 +46,7 @@ class AmazonBaseCrawler(object):
price_and_currency = product.price_and_currency
amiibo_price = {
'shop_product_id': product_id,
'price': price_and_currency[0],
'price': price_and_currency[0].replace(',', ''),
'currency': price_and_currency[1],
}