Approve the textbooks directly.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:12:57 +0530
changeset 490 5b15b4080c33
parent 489 9cd090b8cd52
child 491 630719435d16
Approve the textbooks directly.
scripts/generate_tasks_from_csv.py
--- 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