minor bug fixes

This commit is contained in:
Anthony Samms
2025-11-23 11:03:17 -05:00
parent aef0c46368
commit 1efc734a96
2 changed files with 3 additions and 3 deletions

View File

@@ -23,10 +23,10 @@ def create_dan(cache_path: Path):
for i in range(3): for i in range(3):
chart = dict() chart = dict()
chart_path = input(f"Enter chart path {i+1}: ") chart_path = input(f"Enter chart path {i+1}: ")
with open(f"{cache_path}/path_to_hash.json") as f: with open(f"{cache_path}/path_to_hash.json", encoding='utf-8') as f:
hash_directory = json.load(f) hash_directory = json.load(f)
chart["hash"] = hash_directory.get(chart_path) chart["hash"] = hash_directory.get(chart_path)
with open(f"{cache_path}/song_hashes.json") as f: with open(f"{cache_path}/song_hashes.json", encoding='utf-8') as f:
hash_directory = json.load(f) hash_directory = json.load(f)
chart["title"] = hash_directory[chart["hash"]][0]["title"]["en"] chart["title"] = hash_directory[chart["hash"]][0]["title"]["en"]
chart["subtitle"] = hash_directory[chart["hash"]][0]["subtitle"]["en"] chart["subtitle"] = hash_directory[chart["hash"]][0]["subtitle"]["en"]

View File

@@ -73,7 +73,7 @@ class PracticeGameScreen(GameScreen):
first_bar_time = self.bars[0].hit_ms first_bar_time = self.bars[0].hit_ms
resume_time = self.bars[resume_bar_index].hit_ms - first_bar_time + self.start_delay resume_time = self.bars[resume_bar_index].hit_ms - first_bar_time + self.start_delay
start_time = self.bars[previous_bar_index].hit_ms - first_bar_time start_time = self.bars[previous_bar_index].hit_ms - first_bar_time + self.start_delay
tja_copy = copy.deepcopy(self.scrobbling_tja) tja_copy = copy.deepcopy(self.scrobbling_tja)
self.player_1.tja = tja_copy self.player_1.tja = tja_copy