use last subtask index instead of subtask number
[idea/community.git] / python / educational-core / student / src / com / jetbrains / edu / learning / projectView / TaskDirectoryNode.java
index 2f092a206b1323b7e6affa81da2d75583955f6e4..22577d618fa20ff48e4498a1b33ee33a2044ed4c 100644 (file)
@@ -57,7 +57,8 @@ public class TaskDirectoryNode extends StudyDirectoryNode {
 
   private String getSubtaskInfo() {
     int index = myTask.getActiveSubtaskIndex() + 1;
-    return EduNames.SUBTASK + " " + index + "/" + myTask.getSubtaskNum();
+    int subtasksNum = myTask.getLastSubtaskIndex() + 1;
+    return EduNames.SUBTASK + " " + index + "/" + subtasksNum;
   }
 
   @Override