From ca8db86baaa367e3ec0af2c68ec63d21ae3b6190 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 8 Feb 2018 16:05:42 +0100 Subject: Bugfix --- crawler/convert_price.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawler/convert_price.go') diff --git a/crawler/convert_price.go b/crawler/convert_price.go index 54386d6..d9725a0 100644 --- a/crawler/convert_price.go +++ b/crawler/convert_price.go @@ -29,9 +29,9 @@ func convert_price(price string) (int, error) { price = strings.TrimSpace(price) if len(price) < 2 { - price = "0" + price - } else if len(price) < 3 { price = "00" + price + } else if len(price) < 3 { + price = "0" + price } c := string(price[len(price)-2:]) -- cgit v1.2.3