diff options
author | Madhusudan.C.S | 2011-01-20 06:12:57 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-01-20 06:12:57 +0530 |
commit | 9f10f22937c2c7545f7edc59e1af9f894ad388cb (patch) | |
tree | 372a01e795d2e7929f3d854cefef4a29fcd67960 | |
parent | 424c4d00f059f5cf0954eb9e8f58eda95a69a6eb (diff) | |
download | pytask-9f10f22937c2c7545f7edc59e1af9f894ad388cb.tar.gz pytask-9f10f22937c2c7545f7edc59e1af9f894ad388cb.tar.bz2 pytask-9f10f22937c2c7545f7edc59e1af9f894ad388cb.zip |
Approve the textbooks directly.
-rwxr-xr-x | scripts/generate_tasks_from_csv.py | 3 |
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 |