diff --git a/zeeguu/core/model/cohort.py b/zeeguu/core/model/cohort.py index 5906ab83f..49e658120 100644 --- a/zeeguu/core/model/cohort.py +++ b/zeeguu/core/model/cohort.py @@ -82,3 +82,8 @@ def get_id(cls, inv): def exists_with_invite_code(cls, code: str): all_matching = cls.query.filter_by(inv_code=code).all() return len(all_matching) > 0 + + @classmethod + def get_info(id): + from zeeguu.api.endpoints.teacher_dashboard.helpers import get_cohort_info + return get_cohort_info(id) \ No newline at end of file