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

Method load_requests

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

Source from the content-addressed store, hash-verified

54 )
55
56 def load_requests(self):
57 with self._lock:
58 rows = self._conn.execute("SELECT payload FROM requests ORDER BY submit_time").fetchall()
59 return [json.loads(r["payload"]) for r in rows]
60
61 def count_requests(self):
62 with self._lock:

Callers 1

Calls

no outgoing calls

Tested by 1