mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove unnecessary information from task
This commit is contained in:
@@ -50,7 +50,6 @@ public abstract class Task implements StudyItem {
|
||||
|
||||
@Transient private Lesson myLesson;
|
||||
@Expose @SerializedName("update_date") private Date myUpdateDate;
|
||||
@Expose @SerializedName("position") private int myPosition;
|
||||
|
||||
public Task() {}
|
||||
|
||||
@@ -277,10 +276,7 @@ public abstract class Task implements StudyItem {
|
||||
}
|
||||
|
||||
public int getPosition() {
|
||||
return myPosition;
|
||||
}
|
||||
|
||||
public void setPosition(int position) {
|
||||
myPosition = position;
|
||||
final Lesson lesson = getLesson();
|
||||
return lesson.getTaskList().indexOf(this) + 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,7 +323,6 @@ public class EduStepicConnector {
|
||||
task.setStepId(stepicId);
|
||||
task.setUpdateDate(step.update_date);
|
||||
task.setName(block.options != null ? block.options.title : (PYCHARM_PREFIX + CURRENT_VERSION));
|
||||
task.setPosition(step.position);
|
||||
|
||||
for (StepicWrappers.FileWrapper wrapper : block.options.test) {
|
||||
task.addTestsTexts(wrapper.name, wrapper.text);
|
||||
|
||||
Reference in New Issue
Block a user