Ejemplo n.º 1
0
def households_for_open_survey(interviewer):
    open_survey = Survey.currently_open_surveys(interviewer.location)
    households = interviewer.households.filter(survey__in=open_survey).all()
    return len([hs for hs in households if hs.get_head() is not None])
Ejemplo n.º 2
0
def households_for_open_survey(interviewer):
    open_survey = Survey.currently_open_surveys(interviewer.location)
    households = interviewer.households.filter(survey__in=open_survey).all()
    return len([hs for hs in households if hs.get_head() is not None])
Ejemplo n.º 3
0
def open_survey_in_current_loc(interviewer):
    return len(Survey.currently_open_surveys(interviewer.location))
Ejemplo n.º 4
0
def open_survey_in_current_loc(interviewer):
    return len(Survey.currently_open_surveys(interviewer.location))