Browse Source

iss45: fix text in import file error

pull/55/head
serhii.nechyporchuk 6 years ago
parent
commit
3e725b38fa
1 changed files with 1 additions and 2 deletions
  1. 3
      app/server/views.py

3
app/server/views.py

@ -80,8 +80,7 @@ class DataUpload(SuperUserMixin, LoginRequiredMixin, TemplateView):
reader = it.chain([maybe_header], reader)
text_col = 0
else:
raise DataUpload.ImportFileError("CSV must have either a title with \"text\" column or have only one column ")
raise DataUpload.ImportFileError("CSV file must have either a title with \"text\" column or have only one column ")
header_without_text = [title for i,title in enumerate(maybe_header)
if i != text_col]

Loading…
Cancel
Save