Skip to content

Commit

Permalink
fix return value of other callback methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ltclm committed Nov 29, 2024
1 parent eac924b commit fceb087
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chsdi/lib/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
expression: WORD is_not_null
| WORD IS_NOT BOOLEAN
| WORD operators SIGNED_NUMBER
| WORD operators_likes ESCAPED_QUOTED_STRING
| WORD operators_likes ESCAPED_QUOTED_STRING
operators: OPERATORS -> ops
operators_likes: OPERATORS | LIKES
Expand Down Expand Up @@ -108,16 +108,16 @@ def expression(self, args):

def and_or(self, s):
# log.debug(u'and_or: {}'.format(str(s[0]).lower()))
return s.lower()
return str(s[0]).lower()

def is_not_null(self, s):
return s.lower()
return str(s[0]).lower()

def ops(self, s):
return s.lower()
return str(s[0]).lower()

def operators_likes(self, s):
return s.lower()
return str(s[0]).lower()

def BOOLEAN(self, s):
# log.debug(u'boolean: {}'.format(str(s)))
Expand Down

0 comments on commit fceb087

Please sign in to comment.