MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / db_get_sess

Method db_get_sess

scratchattach/cli/context.py:142–145  ·  view source on GitHub ↗
(self, sess_name: str)

Source from the content-addressed store, hash-verified

140 return db.cursor.fetchone()[0]
141
142 def db_get_sess(self, sess_name: str):
143 if sess_id := self.db_get_sessid(sess_name):
144 return sa.login_by_id(sess_id)
145 return None
146
147
148ctx = _Ctx()

Callers 1

handle_nocmdFunction · 0.80

Calls 1

db_get_sessidMethod · 0.95

Tested by

no test coverage detected