Commits

Christopher Young  committed c2a5d03

Pulling code into job func

  • Participants
  • Parent commits fec5cc5

Comments (0)

Files changed (1)

             timeslot.save()
 
 
-if __name__ == '__main__':
+def job():
     start = datetime.date(2012, 1, 1)
     end = datetime.date(2012, 12, 30)
     times = [((15, 00), (17, 00)), 
     isoweekdays = [7]
     b = BulkOperation(start, end, times, isoweekdays)
     b.bulk_add_timeslots()
+
+
+if __name__ == '__main__':
+    job()