human behavior: classifier gate, pacing, splitting, quiet hours, stable prompt prefix
This commit is contained in:
@@ -163,6 +163,11 @@ class PersistentStore:
|
||||
).fetchall()
|
||||
return [{"id": row[0], "channel": row[1], "fact": row[2]} for row in rows]
|
||||
|
||||
def pinned_all(self) -> List[Dict[str, Any]]:
|
||||
with closing(self._connect()) as conn:
|
||||
rows = conn.execute("SELECT id, channel, fact FROM pinned_facts ORDER BY id").fetchall()
|
||||
return [{"id": row[0], "channel": row[1], "fact": row[2]} for row in rows]
|
||||
|
||||
def delete_pinned(self, pin_id: int) -> int:
|
||||
with closing(self._connect()) as conn, conn:
|
||||
return conn.execute("DELETE FROM pinned_facts WHERE id = ?", (pin_id,)).rowcount
|
||||
|
||||
Reference in New Issue
Block a user