in intellij-plugin/educational-core/src/com/jetbrains/edu/learning/projectView/ProgressUtil.kt [80:95]
fun updateCourseProgress(project: Project) {
val course = StudyTaskManager.getInstance(project).course
if (course == null) {
LOG.error("course is null for project at ${project.basePath}")
return
}
val progress = countProgress(course)
val pane = ProjectView.getInstance(project).currentProjectViewPane
if (pane is CourseViewPane && project.isStudentProject() && !ApplicationManager.getApplication().isUnitTestMode) {
pane.updateCourseProgress(progress)
}
val location = project.basePath
if (location != null && !course.isPreview) {
CoursesStorage.getInstance().updateCourseProgress(course, location, progress.tasksSolved, progress.tasksTotalNum)
}
}