MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / __init__

Method __init__

src/leetcode.py:26–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24
25class Leetcode:
26 def __init__(self):
27 self.dict = self.init_db()
28 self.finished = []
29 self.flasks = []
30 # read user
31 p = util.get_root("user", "leetcode")
32 entries = os.listdir(p)
33 for k in entries:
34 if k.endswith(".cpp") or k.endswith(".py"):
35 self.finished.append(k)
36 elif k.endswith(".md"):
37 self.flasks.append(k)
38
39 def init_db(self):
40 d = SqliteDict(util.get_db('leetcode.sqlite'), autocommit=True)

Callers

nothing calls this directly

Calls 1

init_dbMethod · 0.95

Tested by

no test coverage detected