Skip to content

Commit

Permalink
Merge pull request #36 from anjanaw/dev
Browse files Browse the repository at this point in the history
testing modifications for bosch use case
  • Loading branch information
anjanaw authored Mar 6, 2024
2 parents 3cb32af + 9fc1fbc commit b9487b9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions business/bt/nodes/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import business.bt.nodes.html_format as html
import pandas as pd

bosch_id = "65042b68a6093929a203a707"
class ActionNode(node.Node):
def __init__(self, id) -> None:
super().__init__(id)
Expand Down Expand Up @@ -376,7 +377,11 @@ async def tick(self):

self.status = State.SUCCESS
self.end = datetime.now()
self.co.log(node=self, question=_question, variable=self.co.check_world(self.variable), selected_target=self.co.check_world("selected_target"))
if self.co.check_world("usecase_id") == bosch_id:
self.co.log(node=self, question=technique, variable=self.co.check_world(self.variable), selected_target="")
else:
self.co.log(node=self, question=_question, variable=self.co.check_world(self.variable), selected_target=self.co.check_world("selected_target"))

return self.status

def reset(self):
Expand Down Expand Up @@ -555,7 +560,10 @@ async def tick(self):

self.status = State.SUCCESS
self.end = datetime.now()
self.co.log(node=self, question=_question, variable=self.co.check_world(self.variable))
if self.co.check_world("usecase_id") == bosch_id:
self.co.log(node=self, question="outcome", variable=self.co.check_world(self.variable))
else:
self.co.log(node=self, question=_question, variable=self.co.check_world(self.variable))
return self.status

def reset(self):
Expand Down

0 comments on commit b9487b9

Please sign in to comment.