Commit working theme changes
This commit is contained in:
parent
a7c8cc5dbf
commit
c3b83b0238
9 changed files with 363 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue