zeeguu/api/api/teacher_dashboard/helpers.py
def all_user_info_from_cohort(id, from_date: str, to_date: str):
    """
    Takes id for a cohort and returns all users belonging to that cohort.
    """
    c = Cohort.query.filter_by(id=id).one()
    users = User.query.filter_by(cohort_id=c.id).all()
    users_info = []

    for u in users:
        info = student_info_for_teacher_dashboard(u, c, from_date, to_date)

        users_info.append(info)
    return users_info

    Takes id for a cohort and returns all users belonging to that cohort.
    
Takes id for a cohort and returns all users belonging to that cohort.
Takes id for a cohort and returns all users belonging to that cohort .
def all_user_info_from_cohort(id, from_date: str, to_date: str):
    c = Cohort.query.filter_by(id=id).one()
    users = User.query.filter_by(cohort_id=c.id).all()
    users_info = []
    for u in users:
        info = student_info_for_teacher_dashboard(u, c, from_date, to_date)
        users_info.append(info)
    return users_info
def all_user_info_from_cohort ( id , from_date : str , to_date : str ) : c = Cohort . query . filter_by ( id = id ) . one ( ) users = User . query . filter_by ( cohort_id = c . id ) . all ( ) users_info = [ ] for u in users : info = student_info_for_teacher_dashboard ( u , c , from_date , to_date ) users_info . append ( info ) return users_info
Takes id for a cohort and returns all users belonging to that cohort.
Takes id for a cohort and returns all users belonging to that cohort .
"""
    Takes id for a cohort and returns all users belonging to that cohort.
    """
id
from_date
str
to_date
str