mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
load course lessons once
This commit is contained in:
@@ -217,6 +217,8 @@ public class EduStepicConnector {
|
||||
}
|
||||
|
||||
public static RemoteCourse getCourse(@NotNull final Project project, @NotNull final RemoteCourse remoteCourse) {
|
||||
final List<Lesson> lessons = remoteCourse.getLessons(true);
|
||||
if (!lessons.isEmpty()) return remoteCourse;
|
||||
if (!remoteCourse.isAdaptive()) {
|
||||
try {
|
||||
for (Integer section : remoteCourse.getSections()) {
|
||||
|
||||
Reference in New Issue
Block a user