Fix the color of time warnings in timeline

This commit is contained in:
Ruben van de Ven 2019-11-28 18:25:43 +01:00
parent df80b6063e
commit 44958e8340
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -136,6 +136,10 @@ font-size: 20pt;
display:block;
padding: 0 5px;
}
.status-gone .times, .status-blocked .times, .is-available .times{
display:none;
}
</style>
</head>
<body id='timeline'>