1
0
mirror of synced 2024-12-12 12:01:04 +01:00

parsers.py: Add fix for inconsistent ordering between test runs

This commit is contained in:
Viv 2024-01-25 15:05:32 -05:00
parent 3f3f0ba835
commit 45158de351

View File

@ -156,6 +156,12 @@ def split_tja_lines_into_courses(lines: List[str]) -> TJASong:
if not v.data]:
del parsed_tja.courses[course_name]
# Recreate dict with consistent insertion order
parsed_tja.courses = {
key: parsed_tja.courses[key] for key
in sorted(parsed_tja.courses.keys())
}
return parsed_tja