MCPcopy
hub / github.com/isso-comments/isso / get

Method get

isso/db/threads.py:24–25  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

22 return Thread(*self.db.execute("SELECT * FROM threads WHERE uri=?", (uri,)).fetchone())
23
24 def get(self, id):
25 return Thread(*self.db.execute("SELECT * FROM threads WHERE id=?", (id,)).fetchone())
26
27 def new(self, uri, title):
28 self.db.execute("INSERT INTO threads (uri, title) VALUES (?, ?)", (uri, title))

Callers 15

set_linksMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
verifyMethod · 0.45
newMethod · 0.45
create_cookieMethod · 0.45
viewMethod · 0.45
editMethod · 0.45
deleteMethod · 0.45
unsubscribeMethod · 0.45
moderateMethod · 0.45
fetchMethod · 0.45

Calls 2

ThreadFunction · 0.85
executeMethod · 0.80

Tested by 15

test_wordpressMethod · 0.36
test_genericMethod · 0.36
test_parserMethod · 0.36
testGetMethod · 0.36
testGetInvalidMethod · 0.36
testFetchEmptyMethod · 0.36
testGetLimitedMethod · 0.36
testGetNestedMethod · 0.36
testGetLimitedNestedMethod · 0.36