diff options
| -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:]) |
