예제 #1
0
    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")
예제 #2
0
def check_water_goal():
    """update fake water usage."""
    resource_goal.check_all_daily_resource_goals("water")
예제 #3
0
def check_energy_goal():
    """update energy usage."""
    resource_goal.check_all_daily_resource_goals("energy")
예제 #4
0
    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")