Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TimMcCool/scratchattach
/ session
Method
session
scratchattach/cli/context.py:47–51 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
45
46
@property
47
def
session(self):
48
if
not self._session:
49
self._session = sa.login_by_id(self.db_get_sessid(self.username))
50
51
return
self._session
52
53
# helper functions with DB
54
# if possible, put all db funcs here
Callers
6
test_comment
Function · 0.80
test_activity
Function · 0.80
test_session
Function · 0.80
test_backpack
Function · 0.80
test_project
Function · 0.80
test_auth
Function · 0.80
Calls
1
db_get_sessid
Method · 0.95
Tested by
6
test_comment
Function · 0.64
test_activity
Function · 0.64
test_session
Function · 0.64
test_backpack
Function · 0.64
test_project
Function · 0.64
test_auth
Function · 0.64