Minor Change language string in adaptive courses
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Thu, 4 Aug 2016 12:30:08 +0000 (15:30 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 5 Aug 2016 08:19:56 +0000 (11:19 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduAdaptiveStepicConnector.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/StepicWrappers.java

index 29f2ddebacaece0f8b286ed46f2fc274403beea8..9f81e1b18586ca28c7461800b1cff6ef0fad3163 100644 (file)
@@ -56,7 +56,7 @@ import java.util.concurrent.TimeUnit;
 import static com.jetbrains.edu.learning.stepic.EduStepicConnector.*;
 
 public class EduAdaptiveStepicConnector {
-  public static final String PYTHON27 = "python27";
+  public static final String PYTHON2 = "python2";
   public static final String PYTHON3 = "python3";
   public static final String PYCHARM_COMMENT = "# Posted from PyCharm Edu\n";
   private static final Logger LOG = Logger.getInstance(EduAdaptiveStepicConnector.class);
@@ -515,7 +515,7 @@ public class EduAdaptiveStepicConnector {
         if (versionString != null) {
           final List<String> versionStringParts = StringUtil.split(versionString, " ");
           if (versionStringParts.size() == 2) {
-            return versionStringParts.get(1).startsWith("2") ? PYTHON27 : PYTHON3;
+            return versionStringParts.get(1).startsWith("2") ? PYTHON2 : PYTHON3;
           }
         }
       }
index 0dfcae42215eabfc1642544d70a5ee9d50d8d84a..6cd52df69ae1c03b94562f7fd871d96ee76ec524 100644 (file)
@@ -120,7 +120,7 @@ public class StepicWrappers {
 
     @Nullable
     public String getTemplateForLanguage(@NotNull final String langauge) {
-      if (langauge.equals(EduAdaptiveStepicConnector.PYTHON27)) {
+      if (langauge.equals(EduAdaptiveStepicConnector.PYTHON2)) {
         return python27;
       }