MCPcopy Create free account
hub / github.com/Tong89/smartNode / count_requests

Method count_requests

backend/persistence/db.py:61–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 return [json.loads(r["payload"]) for r in rows]
60
61 def count_requests(self):
62 with self._lock:
63 return self._conn.execute("SELECT COUNT(*) AS c FROM requests").fetchone()["c"]
64
65 def save_stats_snapshot(self, stats: dict):
66 with self._lock, self._conn:

Calls

no outgoing calls