Skip to content

Commit cd65c81

Browse files
committed
1.3.2-beta.3: fixed a bug in the forget node handler which only checked edges for which the node is a member of
1 parent 8eb7326 commit cd65c81

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "koi-net"
3-
version = "1.3.2-beta.2"
3+
version = "1.3.2-beta.3"
44
description = "Implementation of KOI-net protocol in Python"
55
authors = [
66
{name = "Luke Miller", email = "luke@block.science"}

src/koi_net/components/knowledge_handlers/forget_node_handler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ def handle(self, kobj: KnowledgeObject):
2626
if kobj.normalized_event_type != EventType.FORGET:
2727
return
2828

29-
for edge_rid in self.graph.get_edges():
29+
for edge in self.graph.dg.edges:
30+
edge_rid = self.graph.dg.get_edge_data(*edge).get('rid')
31+
if not edge_rid:
32+
continue
33+
3034
edge_bundle = self.cache.read(edge_rid)
3135
if not edge_bundle:
3236
continue

0 commit comments

Comments
 (0)