diff --git a/rates.py b/rates.py index b3e4824..795377b 100644 --- a/rates.py +++ b/rates.py @@ -121,7 +121,7 @@ def ore_to_nok(ore): ore = int(ore) negative = ore < 0 ore = abs(ore) - text = "%s,%02d" % (_group(str(ore // ORE_PER_NOK)), ore % ORE_PER_NOK) + text = "%s,%02d" % (group_int(ore // ORE_PER_NOK), ore % ORE_PER_NOK) return "-" + text if negative else text