Skip to content

Commit

Permalink
Changed the version JSON property name
Browse files Browse the repository at this point in the history
Related to #147
  • Loading branch information
Taikelenn committed Mar 22, 2021
1 parent 41f3a0e commit 62b79ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/fi/aalto/cs/apluscourses/model/Course.java
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ private static Map<String, String[]> getCourseReplInitialCommands(@NotNull JSONO
private static CoursePluginVersion getMinimumPluginVersion(@NotNull JSONObject jsonObject,
@NotNull String source)
throws MalformedCourseConfigurationException {
JSONObject versionJson = jsonObject.optJSONObject("minPluginVersion");
JSONObject versionJson = jsonObject.optJSONObject("version");
if (versionJson == null) {
return CoursePluginVersion.CURRENT_VERSION;
}
Expand All @@ -517,7 +517,7 @@ private static CoursePluginVersion getMinimumPluginVersion(@NotNull JSONObject j
return new CoursePluginVersion(versionJson);
} catch (JSONException ex) {
throw new MalformedCourseConfigurationException(source,
"Incomplete or invalid \"minPluginVersion\" object", ex);
"Incomplete or invalid \"version\" object", ex);
}
}

Expand Down

0 comments on commit 62b79ee

Please sign in to comment.