scripts/generate_tasks_from_csv.py
changeset 490 5b15b4080c33
parent 484 d2a4fcbe2fae
--- a/scripts/generate_tasks_from_csv.py	Thu Jan 20 06:12:25 2011 +0530
+++ b/scripts/generate_tasks_from_csv.py	Thu Jan 20 06:12:57 2011 +0530
@@ -45,7 +45,7 @@
 
     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 @@
           '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