zeeguu/api/api/teacher_dashboard/general.py
def users_by_teacher(duration):
    """
    Return list of dictionaries containing
    user info for all users in cohorts that the logged in user owns.
    """

    from zeeguu.core.model import TeacherCohortMap

    mappings = TeacherCohortMap.query.filter_by(user_id=flask.g.user.id).all()
    all_users = []
    for m in mappings:
        users = all_user_info_from_cohort(m.cohort_id, duration)
        all_users.extend(users)
    return json.dumps(all_users)

    Return list of dictionaries containing
    user info for all users in cohorts that the logged in user owns.
    
Return list of dictionaries containing
user info for all users in cohorts that the logged in user owns.
Return list of dictionaries containing user info for all users in cohorts that the logged in user owns .
def users_by_teacher(duration):
    from zeeguu.core.model import TeacherCohortMap
    mappings = TeacherCohortMap.query.filter_by(user_id=flask.g.user.id).all()
    all_users = []
    for m in mappings:
        users = all_user_info_from_cohort(m.cohort_id, duration)
        all_users.extend(users)
    return json.dumps(all_users)
def users_by_teacher ( duration ) : from zeeguu . core . model import TeacherCohortMap mappings = TeacherCohortMap . query . filter_by ( user_id = flask . g . user . id ) . all ( ) all_users = [ ] for m in mappings : users = all_user_info_from_cohort ( m . cohort_id , duration ) all_users . extend ( users ) return json . dumps ( all_users )
Return list of dictionaries containing
user info for all users in cohorts that the logged in user owns.
Return list of dictionaries containing user info for all users in cohorts that the logged in user owns .
"""
    Return list of dictionaries containing
    user info for all users in cohorts that the logged in user owns.
    """
duration