Issue 5140 Fix Favorites page (#5141)
Co-authored-by: Nils Loewen <nils@blockrewards.ca>
This commit is contained in:
1 parent
31bee1417c
commit
3eb58f7d42
2 files changed
+2
No files matched your search
@@ -0,0 +1 @@
|
||||
hotdogdb/*
|
||||
@@ -4,6 +4,7 @@ use dioxus::prelude::*;
|
||||
#[cfg(feature = "server")]
|
||||
thread_local! {
|
||||
static DB: std::sync::LazyLock<rusqlite::Connection> = std::sync::LazyLock::new(|| {
|
||||
std::fs::create_dir("hotdogdb").unwrap();
|
||||
let conn = rusqlite::Connection::open("hotdogdb/hotdog.db").expect("Failed to open database");
|
||||
|
||||
conn.execute_batch(
|
||||
|
||||
Reference in new issue
Block a user