1
0
mirror of synced 2024-11-30 15:54:27 +01:00

parsers.py: Rename get_course_data function

This commit is contained in:
Viv 2023-07-21 23:14:24 -04:00
parent e318d0a8a3
commit 26fbcdff81

View File

@ -20,14 +20,14 @@ def parse_tja(fname_tja):
tja_text = open(fname_tja, "r", encoding="shift-jis").read() tja_text = open(fname_tja, "r", encoding="shift-jis").read()
lines = [line for line in tja_text.splitlines() if line.strip() != ''] lines = [line for line in tja_text.splitlines() if line.strip() != '']
parsed_tja = get_course_data(lines) parsed_tja = split_tja_lines_into_courses(lines)
for course in parsed_tja.courses.values(): for course in parsed_tja.courses.values():
parse_course_measures(course) parse_course_measures(course)
return parsed_tja return parsed_tja
def get_course_data(lines): def split_tja_lines_into_courses(lines):
parsed_tja = None parsed_tja = None
current_course = '' current_course = ''
current_course_cached = '' current_course_cached = ''