def updateGroupAssigmentProgress(groupID, progress): ''' Updates the assigment progress to all the interested. IMPROVE: In order to improve this, we can create groups to send the info only to interested clients. :param groupID: :param progress: :return: ''' selectedRunningClass = runningClasses[su.get_class_id(session)] currentGroup = selectedRunningClass.studentGroups[su.get_grupo_id(session)] currentGroup.assigmentProgress = progress su.set_classRoom(session, selectedRunningClass.id) handle_assigmentChangePage(currentGroup)
def handle_connection(): selectedRunningClass = runningClasses[su.get_class_id(session)] su.set_classRoom(session, selectedRunningClass.id) su.set_ownRoom(session, request.sid) join_room(selectedRunningClass.id)