solev bug with number of files

This commit is contained in:
Lafrite 2014-09-07 11:22:55 +02:00
parent f0721f08d3
commit ce547e8e38

View File

@ -26,7 +26,7 @@ def main(options):
output = path(template_file.dirname()) / path(template_file.name[3:])
if not options.csv_file:
list_infos = [{num: i+1} for i in range(options.num_subj)]
list_infos = [{"num": i+1} for i in range(options.num_subj)]
else:
with open(options.csv_file, 'r', encoding = 'ISO-8859-1') as f:
list_infos = list(csv.DictReader(f, delimiter=";"))