diff --git a/hugvey/story.py b/hugvey/story.py index 8b350ae..7a14b81 100644 --- a/hugvey/story.py +++ b/hugvey/story.py @@ -267,7 +267,7 @@ class Condition(object): # update stats: story.stats['timeouts'] +=1 - if 'noReplyNeeded' not in self.vars or self.vars['noReplyNeeded'] is False: + if 'needsReply' in self.vars and self.vars['needsReply'] is True: if story.currentReply is None or not story.currentReply.hasUtterances(): story.stats['silentTimeouts'] +=1 story.stats['consecutiveSilentTimeouts'] += 1 diff --git a/www/js/hugvey_console.js b/www/js/hugvey_console.js index af0a4cc..04f83de 100644 --- a/www/js/hugvey_console.js +++ b/www/js/hugvey_console.js @@ -927,7 +927,7 @@ class Graph { 'timeout': { 'seconds': { 'type': 'number', 'value': 10, 'min': 0, 'step': 0.1, 'unit': "s" }, 'onlyIfNoReply': { 'type': 'checkbox', label: "Only if no reply", "title": "This timeout is only used if the participant doesn't say a word. If the participant starts speaking within the time of this timeout condition, only other conditions are applicable." }, - 'noReplyNeeded': { 'type': 'checkbox', label: "No reply needed", "title": "If checked, the timeout is not counted for consecutive-timeouts (for diversions)." }, + 'needsReply': { 'type': 'checkbox', label: "Reply needed", "title": "If checked, the timeout is counted if met. Used by consecutive-timeouts diversions." }, }, 'replyContains': { 'delays.0.minReplyDuration': { 'type': 'number', 'value': 0, 'min': 0, 'step': 0.1, 'label': 'Delay 1 - reply duration', 'unit': "s", 'readonly': 'readonly' },