Skip to content

Commit

Permalink
Percentage token has .tvalue as float
Browse files Browse the repository at this point in the history
- `str` was expected
- e.g. `=IF(RANGE>75%; 1; 0)` fails since `75%` is translated to .75
- while `=IF(RANGE>.75; 1; 0)` would translate to '0.75'
  • Loading branch information
jnwltr committed Sep 17, 2019
1 parent 1830ac8 commit 2e8e866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion koala/ast/astnodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def emit(self,ast,context=None, pointer = False):
childs = args[0].children(ast)

for child in childs:
if ':' in child.tvalue and child.tvalue != ':':
if ':' in str(child.tvalue) and child.tvalue != ':':
is_range = True
range = child.tvalue
break
Expand Down

0 comments on commit 2e8e866

Please sign in to comment.