Skip to content

Commit d1438ee

Browse files
author
Sean Trott
committed
fixed routing in core solver
1 parent fbe2a76 commit d1438ee

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/nluas/app/core_solver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def solve(self, ntuple):
9595
else:
9696
self.ntuple = ntuple
9797
predicate_type = ntuple['predicate_type']
98+
print(predicate_type)
9899
try:
99100
dispatch = getattr(self, "solve_%s" %predicate_type)
100101
dispatch(ntuple)
@@ -114,7 +115,7 @@ def update_world(self, discovered=[]):
114115
self.world.append(item)
115116

116117
def solve_command(self, ntuple):
117-
self.route_event(ntuple['eventDescriptor'], "query")
118+
self.route_event(ntuple['eventDescriptor'], "command")
118119
#self.decoder.pprint_ntuple(ntuple)
119120

120121
def solve_query(self, ntuple):
-47 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)