Преглед изворни кода

Update dialogue_manager: fix is_invalid

StrayWarrior пре 4 недеља
родитељ
комит
6ee857c1a2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pqai_agent/dialogue_manager.py

+ 1 - 1
pqai_agent/dialogue_manager.py

@@ -144,7 +144,7 @@ class DialogueManager:
             return TimeContext.NIGHT
 
     def is_valid(self):
-        if not self.staff_profile.get('agent_name', None):
+        if not self.staff_profile.get('name', None) and not self.staff_profile.get('agent_name', None):
             return False
         return True