summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-20 06:12:57 +0530
committerMadhusudan.C.S2011-01-20 06:12:57 +0530
commit9f10f22937c2c7545f7edc59e1af9f894ad388cb (patch)
tree372a01e795d2e7929f3d854cefef4a29fcd67960
parent424c4d00f059f5cf0954eb9e8f58eda95a69a6eb (diff)
downloadpytask-9f10f22937c2c7545f7edc59e1af9f894ad388cb.tar.gz
pytask-9f10f22937c2c7545f7edc59e1af9f894ad388cb.tar.bz2
pytask-9f10f22937c2c7545f7edc59e1af9f894ad388cb.zip
Approve the textbooks directly.
-rwxr-xr-xscripts/generate_tasks_from_csv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/generate_tasks_from_csv.py b/scripts/generate_tasks_from_csv.py
index 55bcded..8e64d4f 100755
--- a/scripts/generate_tasks_from_csv.py
+++ b/scripts/generate_tasks_from_csv.py
@@ -45,7 +45,7 @@ def get_textbooks_from_csv(directory, file_name):
textbooks = []
for line in csv_obj:
- if len(line) == 2:
+ if len(line) == 2 and line[0]:
sep = ' by '
else:
sep = ''
@@ -55,6 +55,7 @@ def get_textbooks_from_csv(directory, file_name):
'desc': '(To be filled in by the Coordinator or the T/A.)',
'tags_field': ', '. join(['Textbook', branch_name, line[1]]),
'pynts': 10,
+ 'status': 'Open',
})
return textbooks