notify.notifyRevertFailed(baseSchedule,compatibleSchedule,currentSchedule) notify.sendEmail(recipient) #leave loop break #we failed to update course and reverted succesfully currentSchedule = manager.checkCurrentSchedule() #alert of udpate fail notify.notifyUpdateFailed(baseSchedule,compatibleSchedule,currentSchedule) notify.send(recipient) break #alert of schedule change if(success == True): currentSchedule = manager.checkCurrentSchedule() notify.notifySuccessfulUpdate(baseSchedule,compatibleSchedule,currentSchedule) #dont take action, just notify user else: notify.notifyAvailableSchedule(baseSchedule,compatibleSchedule) notify.sendEmail(recipient) #end program browser.close #the current schedule is th best option if(compatibleSchedule.ID >= rank): print "The current schedule is the best compatible Schedule" if heartbeat: