diff options
| author | Fuwn <[email protected]> | 2022-03-30 03:46:18 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-30 03:46:18 -0700 |
| commit | bf21d3e8dd4af3061e94c3a6ddec8f7fb7d55067 (patch) | |
| tree | 48c82ddfef8058d0cadca66aeccda0313ced0a47 /src | |
| parent | docs(readme): create (diff) | |
| download | locus-bf21d3e8dd4af3061e94c3a6ddec8f7fb7d55067.tar.xz locus-bf21d3e8dd4af3061e94c3a6ddec8f7fb7d55067.zip | |
refactor(main): move database location
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 9c0a1bc..db3dfb4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,11 +47,11 @@ use yarte::Template; static DATABASE: SyncLazy<Mutex<PickleDb>> = SyncLazy::new(|| { Mutex::new({ - if std::fs::File::open("locus.db").is_ok() { - PickleDb::load_json("locus.db", pickledb::PickleDbDumpPolicy::AutoDump) + if std::fs::File::open(".locus/locus.db").is_ok() { + PickleDb::load_json(".locus/locus.db", pickledb::PickleDbDumpPolicy::AutoDump) .unwrap() } else { - PickleDb::new_json("locus.db", pickledb::PickleDbDumpPolicy::AutoDump) + PickleDb::new_json(".locus/locus.db", pickledb::PickleDbDumpPolicy::AutoDump) } }) }); |