Commit working theme changes

This commit is contained in:
Miguel Jacq 2025-11-06 10:56:20 +11:00
parent a7c8cc5dbf
commit c3b83b0238
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
9 changed files with 363 additions and 62 deletions

View file

@ -19,6 +19,7 @@ class DBConfig:
path: Path
key: str
idle_minutes: int = 15 # 0 = never lock
theme: str = "system"
class DBManager:
@ -160,13 +161,6 @@ class DBManager:
).fetchone()
return row[0] if row else ""
def upsert_entry(self, date_iso: str, content: str) -> None:
"""
Insert or update an entry.
"""
# Make a new version and set it as current
self.save_new_version(date_iso, content, note=None, set_current=True)
def search_entries(self, text: str) -> list[str]:
"""
Search for entries by term. This only works against the latest