Remove duplicate code

master
Salvo 'LtWorf' Tomaselli 2020-06-27 15:49:19 +07:00
parent 9f171fa393
commit e5dad02397
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 1 additions and 5 deletions

@ -162,11 +162,7 @@ class Node:
elif self.name == SELECTION:
return self.child.result_format(rels)
elif self.name == RENAME:
_vars = {}
for i in self.prop.split(','):
q = i.split(ARROW)
_vars[q[0].strip()] = q[1].strip()
_vars = self.get_rename_prop()
_fields = self.child.result_format(rels)
for i in range(len(_fields)):
if _fields[i] in _vars: