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:
parent
8dc89f53d0
commit
0da83fa38b
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ pub fn snapshot_default(window: Window) -> Snapshot {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn default_path() -> PathBuf {
|
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 {
|
fn empty_snapshot(window: Window) -> Snapshot {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue