fixed bugs after huge refactoring
[idea/community.git] / python / educational / interactive-learning / src / com / jetbrains / edu / learning / StudyUtils.java
index 99e4d058c6d2e94664846ed763c7c88abf1ee0bc..116aaba9c454d225601872fd85a15450545517c5 100644 (file)
@@ -132,7 +132,7 @@ public class StudyUtils {
     final StudyTaskManager taskManager = StudyTaskManager.getInstance(project);
     final Course course = taskManager.getCourse();
     int taskNum = task.getIndex() + 1;
-    int lessonNum = task.getLesson().getIndex() + 1;
+    int lessonNum = task.getLesson().getIndex();
     assert course != null;
     final String pathToResource = FileUtil.join(course.getCourseDirectory(), EduNames.LESSON + lessonNum, EduNames.TASK + taskNum);
     final File resourceFile = new File(pathToResource, copyName);