Beispiel #1
0
    def get_student_forks(self, team_list, args):

        student_list = []
        for team, students in team_list.items():
            student_list += students

        addressbook = Github(self.cfg.get_api_key()).get_repo(ADDRESSBOOK_REPO)
        student_forks = {}
        for fork in addressbook.get_forks():
            student_name = fork.full_name.split("/")[0].lower()
            if student_name in student_list:
                student_forks[student_name] = fork
        return student_forks