Ejemplo n.º 1
0
 def get_mentors_with_no_local_chapter(cls, ignore_ids=None):
     mentor_list = Mentor.query(cls.local_chapter == False).fetch(None)
     mentor_id_list = [
         mentor.user_id for mentor in mentor_list
         if mentor.user_id not in ignore_ids
     ]
     mentor_profile_list = StudentProfileDAO.bulk_get_student_profile_by_id(
         mentor_id_list)
     return mentor_profile_list
Ejemplo n.º 2
0
 def get_mentors_for_local_chapter(cls, local_chapter_id, ignore_ids=None):
     mentor_list = Mentor.query(
         cls.local_chapter == True,
         cls.college_id == local_chapter_id).fetch(None)
     mentor_id_list = [
         mentor.user_id for mentor in mentor_list
         if mentor.user_id not in ignore_ids
     ]
     mentor_profile_list = StudentProfileDAO.bulk_get_student_profile_by_id(
         mentor_id_list)
     return mentor_profile_list