Issue 5140 Fix Favorites page (#5141)

Co-authored-by: Nils Loewen <nils@blockrewards.ca>
This commit is contained in:
Nils LoewenandNils Loewen authored and GitHub committed 2025-12-26 07:49:12 -06:00
1 parent 31bee1417c
commit 3eb58f7d42
2 files changed
+2

No files matched your search

+1
View File
@@ -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(