yuripeyamashita commited on
Commit
80a7dc7
·
verified ·
1 Parent(s): 0f39f95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -224,7 +224,7 @@ def get_amount(text: str) -> float | None:
224
  if len(rows) > 1 and "/" in rows[1]:
225
  divisor = int(rows[1].replace("/", ""))
226
  if divisor % 3 == 0:
227
- number += 1
228
  if divisor == 0:
229
  raise ValueError("divisor = 0")
230
  return round(number/divisor, 2)
 
224
  if len(rows) > 1 and "/" in rows[1]:
225
  divisor = int(rows[1].replace("/", ""))
226
  if divisor % 3 == 0:
227
+ number += 0.3
228
  if divisor == 0:
229
  raise ValueError("divisor = 0")
230
  return round(number/divisor, 2)