diff --git a/relational/relation.py b/relational/relation.py index b0adb35..b07ba0d 100644 --- a/relational/relation.py +++ b/relational/relation.py @@ -550,9 +550,4 @@ class header (object): def getAttributesId(self, param): '''Returns a list with numeric index corresponding to field's name''' - res = [] - for i in param: - for j in range(len(self.attributes)): - if i == self.attributes[j]: - res.append(j) - return res + return [self.attributes.index(i) for i in param]