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

Method db_get_sessid

scratchattach/cli/context.py:87–91  ·  view source on GitHub ↗
(username: str)

Source from the content-addressed store, hash-verified

85
86 @staticmethod
87 def db_get_sessid(username: str) -> Optional[str]:
88 ret = db.cursor.execute("SELECT ID FROM SESSIONS WHERE USERNAME = ?", (username,)).fetchone()
89 if ret:
90 ret = ret[0]
91 return ret
92
93 def db_add_to_group(self, group_name: str, username: str):
94 if username in self.db_users_in_group(group_name) or not self.db_session_exists(username):

Callers 2

sessionMethod · 0.95
db_get_sessMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected