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")
def check_water_goal(): """update fake water usage.""" resource_goal.check_all_daily_resource_goals("water")
def check_energy_goal(): """update energy usage.""" resource_goal.check_all_daily_resource_goals("energy")
def handle(self, *args, **options): """check the energy goal for all teams""" print "****** Processing check_water_goal for %s *******\n" % datetime.datetime.today() resource_goal.check_all_daily_resource_goals("water")