Esempio 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])
Esempio 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])
Esempio n. 3
0
def open_survey_in_current_loc(interviewer):
    return len(Survey.currently_open_surveys(interviewer.location))
Esempio n. 4
0
def open_survey_in_current_loc(interviewer):
    return len(Survey.currently_open_surveys(interviewer.location))