aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-30 03:46:18 -0700
committerFuwn <[email protected]>2022-03-30 03:46:18 -0700
commitbf21d3e8dd4af3061e94c3a6ddec8f7fb7d55067 (patch)
tree48c82ddfef8058d0cadca66aeccda0313ced0a47 /src
parentdocs(readme): create (diff)
downloadlocus-bf21d3e8dd4af3061e94c3a6ddec8f7fb7d55067.tar.xz
locus-bf21d3e8dd4af3061e94c3a6ddec8f7fb7d55067.zip
refactor(main): move database location
Diffstat (limited to 'src')
-rw-r--r--src/main.rs6
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)
}
})
});