MCPcopy 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_commentFunction · 0.80
test_activityFunction · 0.80
test_sessionFunction · 0.80
test_backpackFunction · 0.80
test_projectFunction · 0.80
test_authFunction · 0.80

Calls 1

db_get_sessidMethod · 0.95

Tested by 6

test_commentFunction · 0.64
test_activityFunction · 0.64
test_sessionFunction · 0.64
test_backpackFunction · 0.64
test_projectFunction · 0.64
test_authFunction · 0.64