taskapp/management/commands/seed_db.py
changeset 111 c272d4c601cd
parent 37 40651a873f44
child 114 38793914921b
--- a/taskapp/management/commands/seed_db.py	Fri Feb 26 01:51:55 2010 +0530
+++ b/taskapp/management/commands/seed_db.py	Fri Feb 26 02:52:32 2010 +0530
@@ -32,7 +32,7 @@
         task = taskEvents.createTask(title,desc,created_by,credits)
         if task:
             taskEvents.addMentor(task, defaultMentor)
-            taskEvents.publishTask(task)
+            if i%2==0:taskEvents.publishTask(task)
 
 class Command(NoArgsCommand):