Skip to content

Commit

Permalink
fixed all tests. release 0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rienafairefr committed Jul 17, 2017
1 parent 68177d9 commit 1a58943
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pynYNAB/scripts/csvimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def do_csvimport(args, schema, client=None):

LOG.debug('selected schema %s' % (args.schema,))

nheaders = len(schema.nheaders)

LOG.debug('schema headers %s' % schema.headers)
delta = 0

Expand Down Expand Up @@ -123,7 +121,7 @@ def getsubcategory(categoryname):
LOG.debug('OK starting the import from %s ' % os.path.abspath(args.csvfile))
with open(args.csvfile, 'r') as inputfile:
header = []
for i in range(0, nheaders):
for i in range(0, schema.nheaders):
header.append(inputfile.readline())
for row in csv.reader(inputfile):
if sys.version[0] == '2':
Expand Down

0 comments on commit 1a58943

Please sign in to comment.