From 44958e83408574ced4d1e1648c2b1530e6129219 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Thu, 28 Nov 2019 18:25:43 +0100 Subject: [PATCH] Fix the color of time warnings in timeline --- hugvey/central_command.py | 8 ++++---- www/timeline.html | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hugvey/central_command.py b/hugvey/central_command.py index 0fd8456..aca3e36 100644 --- a/hugvey/central_command.py +++ b/hugvey/central_command.py @@ -200,9 +200,9 @@ class CentralCommand(object): diff = datetime.timedelta(seconds=int(hv.story.timer.getElapsed() - hv.story.lastMsgFinishTime)) status['time_since_hugvey_spoke'] = str(diff) diffs = diff.total_seconds() - if diffs > 60: + if diffs > 120: status['time_since_hugvey_spoke_state'] = 'critical' - elif diffs > 90: + elif diffs > 80: status['time_since_hugvey_spoke_state'] = 'warning' if not hv.story.timer.hasMark('last_speech'): @@ -211,10 +211,10 @@ class CentralCommand(object): diff = datetime.timedelta(seconds=int(hv.story.timer.getElapsed('last_speech'))) status['time_since_visitor_spoke'] = str(diff) diffs = diff.total_seconds() - if diffs > 900: + if diffs > 1700: # evLogger.warning("Very long time since audience spoke") status['time_since_visitor_spoke_state'] = 'critical' - elif diffs > 1800: + elif diffs > 900: status['time_since_visitor_spoke_state'] = 'warning' # else: # #clear warning diff --git a/www/timeline.html b/www/timeline.html index 5d95222..9c365a8 100644 --- a/www/timeline.html +++ b/www/timeline.html @@ -136,6 +136,10 @@ font-size: 20pt; display:block; padding: 0 5px; } + +.status-gone .times, .status-blocked .times, .is-available .times{ +display:none; +}