mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Skip non-code tasks in adaptive course as too boring
This commit is contained in:
+9
@@ -99,6 +99,15 @@ public class EduAdaptiveStepicConnector {
|
||||
if (step.block.name.equals("code")) {
|
||||
return getTaskFromStep(project, stepId, step.block, realLesson.getName());
|
||||
}
|
||||
else {
|
||||
final StudyEditor editor = StudyUtils.getSelectedStudyEditor(project);
|
||||
if (editor != null && editor.getTaskFile() != null) {
|
||||
final StepicUser user = StudyTaskManager.getInstance(project).getUser();
|
||||
postRecommendationReaction(project, String.valueOf(editor.getTaskFile().getTask().getLesson().getId()),
|
||||
String.valueOf(user.getId()), -1);
|
||||
return getNextRecommendation(project, course);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LOG.warn("Got a lesson without code part as a recommendation");
|
||||
|
||||
Reference in New Issue
Block a user