summaryrefslogtreecommitdiff
path: root/yaksh/file_utils.py
diff options
context:
space:
mode:
authorprathamesh2017-11-13 16:47:56 +0530
committerprathamesh2017-11-13 16:47:56 +0530
commitdadf1d1148982c841b5002fe0cc26a82d9d34c95 (patch)
tree87d98fc7305baae621a11770a332fc6582e42072 /yaksh/file_utils.py
parent7c755d00d9c22a156c203f3f2b3312bdb583b5ce (diff)
downloadonline_test-dadf1d1148982c841b5002fe0cc26a82d9d34c95.tar.gz
online_test-dadf1d1148982c841b5002fe0cc26a82d9d34c95.tar.bz2
online_test-dadf1d1148982c841b5002fe0cc26a82d9d34c95.zip
csv can now take extra fields related to profile.
Updates if the username is same. Additional csv header "remove" added, to remove user from the course.
Diffstat (limited to 'yaksh/file_utils.py')
-rw-r--r--yaksh/file_utils.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/yaksh/file_utils.py b/yaksh/file_utils.py
index 7aef249..c53c2dc 100644
--- a/yaksh/file_utils.py
+++ b/yaksh/file_utils.py
@@ -66,15 +66,3 @@ def is_csv(document):
return False, None
return True, dialect
-
-def headers_present(dict_reader, headers):
- fields = dict_reader.fieldnames
- header_fields = set()
- for field in fields:
- if field.strip() in headers.keys():
- headers[field.strip()] = field
- header_fields.add(field.strip())
- if header_fields != set(headers.keys()):
- return False
- return True
-