fix(#1023): read turn-stats db from harness_dir(), not state_dir()

turn_stats.rs writes to harness_dir()/hyperhive-turn-stats.sqlite but
stats.rs was reading from state_dir()/hyperhive-turn-stats.sqlite.
These paths diverged when the harness/state split was introduced.
The read side must match the write side.
This commit is contained in:
iris 2026-06-01 21:50:49 +02:00 committed by mara
commit 0da83fa38b

View file

@ -157,7 +157,7 @@ pub fn snapshot_default(window: Window) -> Snapshot {
}
fn default_path() -> PathBuf {
crate::paths::state_dir().join("hyperhive-turn-stats.sqlite")
crate::paths::harness_dir().join("hyperhive-turn-stats.sqlite")
}
fn empty_snapshot(window: Window) -> Snapshot {