diff options
| author | Max | 2018-02-08 16:05:42 +0100 |
|---|---|---|
| committer | Max | 2018-02-08 16:05:42 +0100 |
| commit | ca8db86baaa367e3ec0af2c68ec63d21ae3b6190 (patch) | |
| tree | ef135e1d5a6012f7690f75a7338e53e8f8009870 /crawler/convert_price.go | |
| parent | f7d9c765ae3656b209c97895079068505644fcc7 (diff) | |
| download | alkobote-ca8db86baaa367e3ec0af2c68ec63d21ae3b6190.tar.gz | |
Bugfix
Diffstat (limited to 'crawler/convert_price.go')
| -rw-r--r-- | crawler/convert_price.go | 4 |
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:]) |
