Remove duplicate code
This commit is contained in:
parent
9f171fa393
commit
e5dad02397
@ -162,11 +162,7 @@ class Node:
|
|||||||
elif self.name == SELECTION:
|
elif self.name == SELECTION:
|
||||||
return self.child.result_format(rels)
|
return self.child.result_format(rels)
|
||||||
elif self.name == RENAME:
|
elif self.name == RENAME:
|
||||||
_vars = {}
|
_vars = self.get_rename_prop()
|
||||||
for i in self.prop.split(','):
|
|
||||||
q = i.split(ARROW)
|
|
||||||
_vars[q[0].strip()] = q[1].strip()
|
|
||||||
|
|
||||||
_fields = self.child.result_format(rels)
|
_fields = self.child.result_format(rels)
|
||||||
for i in range(len(_fields)):
|
for i in range(len(_fields)):
|
||||||
if _fields[i] in _vars:
|
if _fields[i] in _vars:
|
||||||
|
Loading…
Reference in New Issue
Block a user