summaryrefslogtreecommitdiff
path: root/crawler/convert_price.go
diff options
context:
space:
mode:
authorMax2018-02-08 16:05:42 +0100
committerMax2018-02-08 16:05:42 +0100
commitca8db86baaa367e3ec0af2c68ec63d21ae3b6190 (patch)
treeef135e1d5a6012f7690f75a7338e53e8f8009870 /crawler/convert_price.go
parentf7d9c765ae3656b209c97895079068505644fcc7 (diff)
downloadalkobote-ca8db86baaa367e3ec0af2c68ec63d21ae3b6190.tar.gz
Bugfix
Diffstat (limited to 'crawler/convert_price.go')
-rw-r--r--crawler/convert_price.go4
1 files changed, 2 insertions, 2 deletions
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:])