Remove unnecessary edits from qradar.py

This commit is contained in:
Simran Soin 2020-07-23 10:34:29 -04:00
parent 0e49a6acdf
commit ef9af3730a

View File

@ -58,14 +58,10 @@ class QRadarBackend(SingleTextQueryBackend):
"""Remove quotes in text"""
return value.replace("\'","\\\'")
def generateNode(self, node, currently_within_NOT_node=False):
def generateNode(self, node):
if type(node) == sigma.parser.condition.ConditionAND:
if currently_within_NOT_node:
return self.generateORNode(node)
return self.generateANDNode(node)
elif type(node) == sigma.parser.condition.ConditionOR:
if currently_within_NOT_node:
return self.generateANDNode(node)
return self.generateORNode(node)
elif type(node) == sigma.parser.condition.ConditionNOT:
return self.generateNOTNode(node)