fix 0 dan count, add percent to gauge counter, add missing exam type

This commit is contained in:
somepin
2025-11-27 16:50:39 -05:00
parent 78c4f5af95
commit 31225b7627
3 changed files with 18 additions and 9 deletions

View File

@@ -1356,8 +1356,8 @@ class FileNavigator:
for song_list_path in song_list_files:
with open(song_list_path, 'r', encoding='utf-8-sig') as song_list_file:
tja_count += len([line for line in song_list_file.readlines() if line.strip()])
# Fallback: Use recursive counting of .tja files
tja_count += sum(1 for _ in folder_path.rglob("*.tja"))
# Fallback: Use recursive counting of .tja or dan.json files
tja_count += sum(1 for _ in list(folder_path.rglob("*.tja")) + list(folder_path.rglob("dan.json")))
return tja_count