mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-07 09:48:58 +00:00
Remove unnecessary edits from qradar.py
This commit is contained in:
parent
0e49a6acdf
commit
ef9af3730a
@ -58,14 +58,10 @@ class QRadarBackend(SingleTextQueryBackend):
|
|||||||
"""Remove quotes in text"""
|
"""Remove quotes in text"""
|
||||||
return value.replace("\'","\\\'")
|
return value.replace("\'","\\\'")
|
||||||
|
|
||||||
def generateNode(self, node, currently_within_NOT_node=False):
|
def generateNode(self, node):
|
||||||
if type(node) == sigma.parser.condition.ConditionAND:
|
if type(node) == sigma.parser.condition.ConditionAND:
|
||||||
if currently_within_NOT_node:
|
|
||||||
return self.generateORNode(node)
|
|
||||||
return self.generateANDNode(node)
|
return self.generateANDNode(node)
|
||||||
elif type(node) == sigma.parser.condition.ConditionOR:
|
elif type(node) == sigma.parser.condition.ConditionOR:
|
||||||
if currently_within_NOT_node:
|
|
||||||
return self.generateANDNode(node)
|
|
||||||
return self.generateORNode(node)
|
return self.generateORNode(node)
|
||||||
elif type(node) == sigma.parser.condition.ConditionNOT:
|
elif type(node) == sigma.parser.condition.ConditionNOT:
|
||||||
return self.generateNOTNode(node)
|
return self.generateNOTNode(node)
|
||||||
|
Loading…
Reference in New Issue
Block a user