diff options
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/file_utils.py | 6 | ||||
-rw-r--r-- | yaksh/templates/yaksh/course_detail.html | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/yaksh/file_utils.py b/yaksh/file_utils.py index 361b29c..0d80b8f 100644 --- a/yaksh/file_utils.py +++ b/yaksh/file_utils.py @@ -68,12 +68,12 @@ def is_csv(document): def headers_present(dict_reader, headers): fields = dict_reader.fieldnames - clist = set() + header_fields = set() for field in fields: if field.strip() in headers.keys(): headers[field.strip()] = field - clist.add(field.strip()) - if clist != headers.keys(): + header_fields.add(field.strip()) + if header_fields != set(headers.keys()): return False return True diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index 3f13ea7..4b88ecb 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -49,8 +49,9 @@ <button class="btn btn-primary" type=submit> Upload Users <span class="glyphicon glyphicon-open"/></button> </form> <div class="alert alert-info" role="alert"> - The uploaded csv should have headers exactly same as mentioned below:<br> - <b>firstname, lastname, email</b> + - The uploaded csv should have headers exactly same as mentioned below:<br> + <b>firstname, lastname, email</b><br></br> + - <b>Users created will have username and password same as their email</b> </div> </li> </ul> |