cools commited on
Commit
878e08b
1 Parent(s): 02e3968

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -168,7 +168,7 @@ def rel_time_parse(snip):
168
  digits = [c for c in snip if c.isdigit()]
169
  val = 0
170
  if len(digits) > 0:
171
- val = int(" ".join(digits))
172
  else:
173
  if ("hour" in snip and "hours" not in snip) or ("minute" in snip and "minutes" not in snip):
174
  val = 1
 
168
  digits = [c for c in snip if c.isdigit()]
169
  val = 0
170
  if len(digits) > 0:
171
+ val = int("".join(digits))
172
  else:
173
  if ("hour" in snip and "hours" not in snip) or ("minute" in snip and "minutes" not in snip):
174
  val = 1