1
0
mirror of synced 2024-11-27 22:40:49 +01:00

parsers.py: Rename parse_course_measures function

This commit is contained in:
Viv 2023-07-21 23:15:47 -04:00
parent 26fbcdff81
commit e756f5c07f

View File

@ -22,7 +22,7 @@ def parse_tja(fname_tja):
lines = [line for line in tja_text.splitlines() if line.strip() != '']
parsed_tja = split_tja_lines_into_courses(lines)
for course in parsed_tja.courses.values():
parse_course_measures(course)
parse_tja_course_data(course)
return parsed_tja
@ -125,7 +125,7 @@ def split_tja_lines_into_courses(lines):
return parsed_tja
def parse_course_measures(course):
def parse_tja_course_data(course):
# Check if the course has branches or not
has_branches = (True if [d for d in course.data if d.name == 'BRANCHSTART']
else False)