Reuse code to generate the projection python code

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2020-06-18 17:10:34 +02:00
parent 04f568ad50
commit 8fd2db12b5

View File

@@ -231,7 +231,7 @@ class Unary(Node):
# Converting parameters
if self.name == PROJECTION:
prop = '\"%s\"' % prop.replace(' ', '').replace(',', '\",\"')
prop = repr(self.get_projection_prop())
elif self.name == RENAME:
prop = repr(self.get_rename_prop())
else: # Selection