This commit is contained in:
Mateusz Gruszczyński
2026-05-08 20:09:30 +02:00
parent 96e17d4b63
commit 02875fdc92
3 changed files with 51 additions and 2 deletions

View File

@@ -300,6 +300,11 @@ def _cached_favicon(domain: str):
return conn.execute("SELECT * FROM tracker_favicon_cache WHERE domain=?", (clean,)).fetchone()
def favicon_cache_row(domain: str):
"""Note: Expose the favicon cache row for diagnostics without duplicating SQL in routes or CLI."""
return _cached_favicon(domain)
def favicon_path(domain: str, enabled: bool = True, force: bool = False) -> tuple[Path | None, str | None]:
clean = tracker_domain(domain)
if not enabled or not clean: