def handle(self, *args, **options): """check the water goal for all teams and update the daily baseline""" today = datetime.datetime.today() print "****** Processing check_water_goal for %s *******\n" % today today = today.date() resource_goal.check_resource_goals("water", today) # update the baseline resource_goal.update_resource_baseline("water", today, 2)
def handle(self, *args, **options): """check the energy goal for all teams and update the daily baseline""" today = datetime.datetime.today() print '****** Processing check_energy_goal for %s *******\n' % today today = today.date() resource_goal.check_resource_goals("energy", today) # update the baseline resource_goal.update_resource_baseline("energy", today, 2)
def check_water_goal(): """check the water goal for all teams and update energy baseline""" today = datetime.datetime.today() print '****** Processing check_water_goal and update baseline for %s *******\n' % today challenge_mgr.init() today = today.date() resource_goal.check_resource_goals("water", today) # update the baseline resource_goal.update_resource_baseline("water", today, 2)
def handle(self, *args, **options): """check the water goal for all teams and update the daily baseline""" today = datetime.datetime.today() print '****** Processing check_water_goal for %s *******\n' % today if not challenge_mgr.is_game_enabled("Water Game"): print "Water Game is not enabled. Do nothing." return today = today.date() resource_goal.check_resource_goals("water", today) # update the baseline resource_goal.update_resource_baseline("water", today, 2)