parsers.py
: Account for #SECTION
far before first #BRANCHSTART
This commit is contained in:
parent
82754301c7
commit
334a70e2b1
@ -276,6 +276,9 @@ def parse_tja_course_data(data: List[str]) -> Dict[str, List[TJAMeasure]]:
|
||||
if data[idx_l+1].startswith('#BRANCHSTART'):
|
||||
name = 'section'
|
||||
current_branch = 'all'
|
||||
elif not branch_condition:
|
||||
name = 'section'
|
||||
current_branch = 'all'
|
||||
# Otherwise, #SECTION exists in isolation. In this case, to
|
||||
# reset the accuracy, we just repeat the previous #BRANCHSTART.
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user