Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
8f94093e
Commit
8f94093e
authored
8 years ago
by
Liana.Bakradze
1
Browse files
Options
Download
Email Patches
Plain Diff
fix migration for tasks with subtasks
parent
12cebd20
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/educational-core/src/com/jetbrains/edu/learning/StudySerializationUtils.java
+7
-1
...c/com/jetbrains/edu/learning/StudySerializationUtils.java
with
7 additions
and
1 deletion
+7
-1
python/educational-core/src/com/jetbrains/edu/learning/StudySerializationUtils.java
+
7
-
1
View file @
8f94093e
...
...
@@ -327,7 +327,13 @@ public class StudySerializationUtils {
for
(
VirtualFile
file
:
taskDescriptionFiles
)
{
try
{
String
text
=
VfsUtilCore
.
loadText
(
file
);
taskTextsMap
.
put
(
FileUtil
.
getNameWithoutExtension
(
file
.
getName
()),
text
);
String
key
=
FileUtil
.
getNameWithoutExtension
(
file
.
getName
());
if
(
key
.
equals
(
EduNames
.
TASK
)
&&
taskDescriptionFiles
.
size
()
>
1
)
{
taskTextsMap
.
put
(
EduNames
.
TASK
+
EduNames
.
SUBTASK_MARKER
+
0
,
text
);
}
else
{
taskTextsMap
.
put
(
key
,
text
);
}
}
catch
(
IOException
e
)
{
LOG
.
error
(
e
);
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
41be0daf
·
2 years ago
mentioned in commit
41be0daf
mentioned in commit 41be0daf5e2b39cecd7946c28e848e682526af8a
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help