more minor bug fixes

This commit is contained in:
Yonokid
2025-08-16 11:11:14 -04:00
parent 1d235e1571
commit e3d24f00f9
5 changed files with 49 additions and 53 deletions

View File

@@ -67,7 +67,7 @@ def build_song_hashes(output_dir=Path("cache")):
current_hash = path_to_hash.get(tja_path_str)
if current_hash is not None:
global_data.song_paths[tja_path] = current_hash
continue
continue
current_hash = path_to_hash.get(tja_path_str)
if current_hash is None:
files_to_process.append(tja_path)
@@ -77,6 +77,7 @@ def build_song_hashes(output_dir=Path("cache")):
del song_hashes[current_hash]
del path_to_hash[tja_path_str]
# Prepare database connection for updates
db_path = Path("scores.db")
db_updates = [] # Store updates to batch process later