mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
Fix fixing courses with p1 and p2 notes
This commit is contained in:
parent
ab3c421ab4
commit
7967ff1b09
@ -67,13 +67,14 @@
|
||||
if((name === "start" || name === "start p1") && !inSong){
|
||||
|
||||
inSong = true
|
||||
if(!hasSong){
|
||||
if(!hasSong || name === "start" && courses[courseName] && courses[courseName].startName !== "start"){
|
||||
if(!(courseName in courses)){
|
||||
courses[courseName] = {}
|
||||
}
|
||||
for(var name in currentCourse){
|
||||
if(name !== "branch"){
|
||||
courses[courseName][name] = currentCourse[name]
|
||||
courses[courseName].startName = name
|
||||
for(var opt in currentCourse){
|
||||
if(opt !== "branch"){
|
||||
courses[courseName][opt] = currentCourse[opt]
|
||||
}
|
||||
}
|
||||
courses[courseName].start = lineNum + 1
|
||||
|
Loading…
Reference in New Issue
Block a user