mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
publish lessons as public always
This commit is contained in:
@@ -137,6 +137,10 @@ public class Lesson implements StudyItem {
|
||||
myUpdateDate = updateDate;
|
||||
}
|
||||
|
||||
public void setPublic(boolean isPublic) {
|
||||
this.is_public = isPublic;
|
||||
}
|
||||
|
||||
public boolean isUpToDate() {
|
||||
if (myId == 0) return true;
|
||||
final Date date = EduStepicConnector.getLessonUpdateDate(myId);
|
||||
|
||||
@@ -193,6 +193,7 @@ public class StepicWrappers {
|
||||
this.lesson.setName(lesson.getName());
|
||||
this.lesson.setId(lesson.getId());
|
||||
this.lesson.steps = new ArrayList<>();
|
||||
this.lesson.setPublic(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user