Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def csv(self):
data = []
for record in self._results['results']:
data.append([record.get(i) for i in approved_fields])
return utilities.to_csv(approved_fields, data)
def csv(self):
data = []
for record in self._results['results']:
data.append([record.get(i) for i in approved_fields])
return utilities.to_csv(approved_fields, data)