From bf21d3e8dd4af3061e94c3a6ddec8f7fb7d55067 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 30 Mar 2022 03:46:18 -0700 Subject: refactor(main): move database location --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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> = 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) } }) }); -- cgit v1.2.3