Merge pull request #1 from IepIweidieng/fix-tower-dan-swapped

fix(global_funcs.py): fix values for `COURSE:Tower` (5) & `COURSE:Dan` (6) were swapped
This commit is contained in:
Anthony Samms
2025-03-13 15:50:56 -04:00
committed by GitHub

View File

@@ -141,9 +141,9 @@ class TJAParser:
elif 'DEMOSTART' in item: self.demo_start = float(item.split(':')[1]) elif 'DEMOSTART' in item: self.demo_start = float(item.split(':')[1])
elif 'COURSE' in item: elif 'COURSE' in item:
course = str(item.split(':')[1]).lower() course = str(item.split(':')[1]).lower()
if course == 'tower' or course == '6': if course == 'dan' or course == '6':
self.course_data[6] = [] self.course_data[6] = []
if course == 'dan' or course == '5': if course == 'tower' or course == '5':
self.course_data[5] = [] self.course_data[5] = []
elif course == 'edit' or course == '4': elif course == 'edit' or course == '4':
self.course_data[4] = [] self.course_data[4] = []