Skip to content

Commit

Permalink
fix: add confidence to the live chat
Browse files Browse the repository at this point in the history
  • Loading branch information
cmltaWt0 committed Oct 11, 2017
1 parent 129d4a8 commit 8af9486
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion mysite/chat/fsm_plugin/live_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,24 @@ class GET_ANSWER(object):
)
title = 'It is time to answer'
edges = (
dict(name='next', toNode='WAIT_ASSESS', title='Go to self-assessment'),
dict(name='next', toNode='CONFIDENCE', title='Go to self-assessment'),
)


class CONFIDENCE(object):
title = 'Select the level of your confidence?'
edges = (
dict(name='next', toNode='GET_CONFIDENCE', title='Go to choosing your confidence'),
)


class GET_CONFIDENCE(object):
title = 'Choose confidence'
edges = (
dict(name='next', toNode='WAIT_ASSESS', title='Go to self-assessment'),
)


class WAIT_ASSESS(object):
"""
The instructor has not ended the question period yet.
Expand Down Expand Up @@ -256,6 +270,8 @@ def get_specs():
TITLE,
ASK,
GET_ANSWER,
CONFIDENCE,
GET_CONFIDENCE,
WAIT_ASSESS,
ASSESS,
GET_ASSESS,
Expand Down

0 comments on commit 8af9486

Please sign in to comment.