if (depth < 2):
self.execute("SELECT targ FROM link WHERE orig=%s", (self.id,))
rows = self.cur.fetchall()
for row in rows:
nnode = Node().get_by_id(row[0])
nnode.parent = self.id
nnode._neighbors(nodes, depth + 1)
After Change
for n in self.d["origs"]:
nnode = Node().get_by_id(n)
nnode.parent = self.d["_id"]
nnode._neighbors(nodes, depth + 1)
def _internal_links(self, nodes):
ilinks = {}