Skip to content

Commit

Permalink
fix(grpc): Fix conversion of timed goals to protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed May 2, 2023
1 parent 5023d15 commit 2da035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unified_planning/grpc/proto_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def build_hierarchy(
@handles(model.Problem, model.htn.HierarchicalProblem)
def _convert_problem(self, problem: model.Problem) -> proto.Problem:
goals = [proto.Goal(goal=self.convert(g)) for g in problem.goals]
for t, gs in problem.timed_goals:
for t, gs in problem.timed_goals.items():
goals += [
proto.Goal(goal=self.convert(g), timing=self.convert(t)) for g in gs
]
Expand Down

0 comments on commit 2da035f

Please sign in to comment.