[STAGE5] Migrate HomeBot to gateway local-tools
lint / hygiene (pull_request) Failing after 27s
standard / check (pull_request) Successful in 10s
lint / hygiene (push) Failing after 30s
standard / check (push) Successful in 11s

This commit is contained in:
architect committed 2026-11-29 22:08:55 +03:00
1 parent c7be3583e1
commit 7e30c8df13
5 files changed
+30 -3

No files matched your search

+6
View File
@@ -52,6 +52,12 @@ def local_call(handler, q=""):
if handler == "book_search":
rows, err = _photo_local().Books().search(q, 5)
return {"ok": not bool(err), "rows": rows, "error": err}
if handler == "home_stats":
data, err = _photo_local().HomeDb().entities()
return {"ok": not bool(err), "data": data, "error": err}
if handler == "home_status":
data, err = _photo_local().HomeDb().states()
return {"ok": not bool(err), "data": data, "error": err}
raise ValueError("unknown local handler")