fix: Fixed changes omissions in handler function

pull/304/head
chrisr3d 2018-07-28 00:07:02 +02:00
parent 63ba7580d3
commit 92fbcaeff6
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 2 deletions

View File

@ -203,9 +203,9 @@ def handler(q=False):
else:
header = request['config'].get('header').split(',')
header = [c.strip() for c in header]
csv_parser = CsvParser(header, has_header)
csv_parser = CsvParser(header, has_header, data.split('\n'))
# build the attributes
csv_parser.buildAttributes()
csv_parser.parse_csv()
r = {'results': csv_parser.result}
return r