strings are unmutable objects
This commit is contained in:
parent
0435cd7411
commit
2377824691
1 changed files with 3 additions and 3 deletions
|
|
@ -69,9 +69,9 @@ class Results(object):
|
|||
|
||||
class ResultsCondition(object):
|
||||
def __init__(self, condition_str):
|
||||
condition_str.replace('OR', 'or')
|
||||
condition_str.replace('AND', 'and')
|
||||
condition_str.replace('NOT', 'not')
|
||||
condition_str = condition_str.replace('OR', 'or') \
|
||||
.replace('AND', 'and') \
|
||||
.replace('NOT', 'not')
|
||||
or_list = []
|
||||
try:
|
||||
for _or in condition_str.split('or'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue