Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Deoy12 committed Oct 27, 2019
1 parent 6e0bfd7 commit ed9ad3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Textalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ def parsestr(s):
conv = convert(s)
if len(s.split()) == 1:
return conv, s
return conv, calculate(conv)
a, b = conv, calculate(conv)
if 'Incorrect' in b :
return conv, calculate(s)
else:
return a, b

def convert(s):
return convert_fractions(convert_to_proto(s))
Expand Down

0 comments on commit ed9ad3e

Please sign in to comment.