def get_project_usage(project, start, end):
    """Return a tuple of cpu hours and number of jobs for a project
    for a given period

    Keyword arguments:
    project --
    start -- start date
    end -- end date

    """
    try:
        cache = ProjectCache.objects.get(
            project=project, date=datetime.date.today(),
            start=start, end=end)
        return cache.cpu_time, cache.no_jobs
    except ProjectCache.DoesNotExist:
        return 0, 0
def get_project_usage ( project , start , end ) : try : cache = ProjectCache . objects . get ( project = project , date = datetime . date . today ( ) , start = start , end = end ) return cache . cpu_time , cache . no_jobs except ProjectCache . DoesNotExist : return 0 , 0
Return a tuple of cpu hours and number of jobs for a project
    for a given period

    Keyword arguments:
    project --
    start -- start date
    end -- end date