MCPcopy Create free account
hub / github.com/webpy/webpy / __contains__

Method __contains__

web/session.py:330–332  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

328 self.table = table_name
329
330 def __contains__(self, key):
331 data = self.db.select(self.table, where="session_id=$key", vars=locals())
332 return bool(list(data))
333
334 def __getitem__(self, key):
335 now = datetime.datetime.now()

Callers

nothing calls this directly

Calls 1

selectMethod · 0.80

Tested by

no test coverage detected