Poprawka buga

This commit is contained in:
s495727 2024-06-13 16:40:21 +02:00
parent 75fb0f873b
commit d1108d9b8a

View File

@ -147,6 +147,13 @@ class DialogStateMonitor:
new_order[slot.name].append(value) new_order[slot.name].append(value)
else: else:
new_order[slot.name] = [value] new_order[slot.name] = [value]
if slot.name == "drink":
if new_order.get("drink"):
new_order[slot.name].append(value)
else:
new_order[slot.name] = [value]
else:
new_order[slot.name] = value
if len(new_order) > 0: if len(new_order) > 0:
self.state['belief_state']['order'].append(new_order) self.state['belief_state']['order'].append(new_order)
self.complete_stage_if_valid('collect_food') self.complete_stage_if_valid('collect_food')