def handle(self, *args, **options): """check the energy goal for all teams""" today = datetime.datetime.today() print '****** Processing check_energy_goal for %s *******\n' % today # update the latest resource usage before checking resource_mgr.update_energy_usage() resource_goal.check_all_daily_resource_goals("energy") # update the dynamic baseline if they are dynamic resource_goal.update_energy_baseline(today.date(), 2, "Dynamic")