diff --git a/models/ethikis_survey_export.py b/models/ethikis_survey_export.py index 2600e8fd317351146ccb9a8cc49c05af10df69b8..83d43515648d984c740ff3961ba841d9647b9ea2 100644 --- a/models/ethikis_survey_export.py +++ b/models/ethikis_survey_export.py @@ -20,8 +20,9 @@ class Survey(models.Model): for question_id in question_ids: columns.append(question_id.question) + worksheet.write(0, 0, "Heure de réponse") for i, fieldname in enumerate(columns): - worksheet.write(0, i, fieldname) + worksheet.write(0, i+1, fieldname) worksheet.col(i).width = 8000 # around 220 pixels base_style = xlwt.easyxf('align: wrap yes') @@ -45,9 +46,9 @@ class Survey(models.Model): answers = answers_to_that_question_id.get_user_answers() else: answers = False - print('-----answer', cell_index, answers) - worksheet.write(row_index + 1, cell_index, str(answers), cell_style) + worksheet.write(row_index + 1, cell_index+1, str(answers), cell_style) cell_index = cell_index + 1 + worksheet.write(row_index + 1, 0, str(user_input_id.create_date)) row_index = row_index + 1 return workbook