mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add a line saying that it's an adaptive course to adaptive course description
This commit is contained in:
+4
@@ -354,6 +354,10 @@ public class EduStepicConnector {
|
||||
final StepicUser author = getFromStepic(EduStepicNames.USERS + "/" + String.valueOf(instructor), StepicWrappers.AuthorWrapper.class).users.get(0);
|
||||
info.addAuthor(author);
|
||||
}
|
||||
|
||||
if (info.isAdaptive()) {
|
||||
info.setDescription("This is a Stepic Adaptive course.\n\n" + info.getDescription());
|
||||
}
|
||||
|
||||
String name = info.getName().replaceAll("[^a-zA-Z0-9\\s]", "");
|
||||
info.setName(name.trim());
|
||||
|
||||
Reference in New Issue
Block a user