generator fix
This commit is contained in:
parent
4d01fc8399
commit
6d5109df64
@ -11,9 +11,9 @@ def generator_jezyka_nautalnego(frame, question, state):
|
|||||||
if question == Questions.TIME:
|
if question == Questions.TIME:
|
||||||
print("Z jakiego czasu?")
|
print("Z jakiego czasu?")
|
||||||
|
|
||||||
elif state[-2]['questions'] != Questions.NONE and frame['act'] != "":
|
elif len(state) > 2 and state[-2]['questions'] != Questions.NONE and frame['act'] != "":
|
||||||
print("Przyjęto odpowiedź na pytanie.")
|
print("Przyjęto odpowiedź na pytanie.")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
#dont ask questions
|
#dont ask questions
|
||||||
if frame['act'] == "hello":
|
if frame['act'] == "hello":
|
||||||
|
Loading…
Reference in New Issue
Block a user