From 6e29172b1dbc5439cc639385b0812ff1ab31c00f Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Fri, 4 Mar 2011 16:43:36 +0100 Subject: [PATCH] [bug#4021] Fixed bug with sorting operator with reverse order. --- ccserver/tql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ccserver/tql.py b/ccserver/tql.py index 0248fbf..194cfd3 100644 --- a/ccserver/tql.py +++ b/ccserver/tql.py @@ -752,7 +752,7 @@ class TqlParser(object): # Add the tag name to the list of tags to get: self._to_check.add(word[1]) - self._to_show.append(word[1]) + self._to_show.append(word[1].lstrip('-')) return TqlAstTag(word[1]) @@ -761,8 +761,8 @@ class TqlParser(object): next = self._lexer.look_ahead() # Add the tag name to the list of tags to get: - self._to_get.add(left[1]) - self._to_show.append(left[1]) + self._to_get.add(left[1].lstrip('-')) + self._to_show.append(left[1].lstrip('-')) if next[0] == self._lexer.TOK_OP: operator = self._lexer.get_token() -- GitLab