MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / getTypeId

Method getTypeId

plugins/Chart/ChartDb.py:49–54  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

47 return schema
48
49 def getTypeId(self, name):
50 if name not in self.types:
51 self.execute("INSERT INTO type ?", {"name": name})
52 self.types[name] = self.cur.cursor.lastrowid
53
54 return self.types[name]
55
56 def getSiteId(self, address):
57 if address not in self.sites:

Callers 2

collectGlobalMethod · 0.80
collectSitesMethod · 0.80

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected