changes to worker status
This commit is contained in:
parent
bd326d0211
commit
0b5ba5b8c7
3 changed files with 11 additions and 10 deletions
|
@ -186,7 +186,7 @@ class StatusWebSocketHandler(tornado.websocket.WebSocketHandler):
|
|||
# the client connected
|
||||
def open(self, p = None):
|
||||
self.__class__.connections.add(self)
|
||||
for prop, value in enumerate(self.statusPage.__dict__):
|
||||
for prop, value in self.statusPage.__dict__.items():
|
||||
self.write_message(json.dumps({
|
||||
'property': prop,
|
||||
'value': value.isoformat(timespec='seconds') if type(value) is datetime.datetime else value
|
||||
|
|
|
@ -19,8 +19,11 @@
|
|||
</div> -->
|
||||
|
||||
<div class="phase" id="worker_specs">
|
||||
<span class="grid-item spec_name" id="hit_id_descriptor">human intelligent task id</span>
|
||||
<span class="grid-item spec_value" id="hit_id"> </span>
|
||||
|
||||
<span class="grid-item spec_name" id="worker_id_descriptor">human worker id</span>
|
||||
<span class="grid-item spec_value" id="worker_id"> </span>it
|
||||
<span class="grid-item spec_value" id="worker_id"> </span>
|
||||
<span class="grid-item spec_name" id="ip_descriptor">ip address</span>
|
||||
<span class="grid-item spec_value" id="ip"> </span>
|
||||
<span class="grid-item spec_name" id="location_descriptor">location</span>
|
||||
|
@ -30,8 +33,6 @@
|
|||
<span class="grid-item spec_name" id="os_descriptor">os</span>
|
||||
<span class="grid-item spec_value" id="os"> </span>
|
||||
|
||||
<span class="grid-item spec_name" id="hit_id_descriptor">human intelligent task id</span>
|
||||
<span class="grid-item spec_value" id="hit_id"> </span>
|
||||
<span class="grid-item spec_name" id="hit_opened_descriptor">task started at</span>
|
||||
<span class="grid-item spec_value" id="hit_opened"> </span>
|
||||
<span class="grid-item spec_name" id="state_descriptor">task status</span>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
:root{
|
||||
|
||||
--base-font-size: 25px;
|
||||
--base-font-size: 22px;
|
||||
--spec_name-font-size: 120%;
|
||||
--spec_value-font-size: 250%;
|
||||
|
||||
|
@ -20,10 +20,10 @@
|
|||
|
||||
/* /////// GAT VOORKANT PLEK & POSITIE //////// */
|
||||
/* */ /* */
|
||||
/* */ --pos-x: calc(50% - (var(--width)/2)); /* */
|
||||
/* */ --pos-y: 200px; /* */
|
||||
/* */ --width: 560px; /* 115mm */
|
||||
/* */ --height: 1250px; /* 260mm */
|
||||
/* */ --pos-x: 555px; /* */
|
||||
/* */ --pos-y: 120px; /* */
|
||||
/* */ --width: 420px; /* 115mm */
|
||||
/* */ --height: 1000px; /* 270mm */
|
||||
/* */ /* */
|
||||
/* //////////////////////////////////////////// */
|
||||
|
||||
|
@ -38,7 +38,7 @@ html, body{
|
|||
font-family: 'bebas';
|
||||
font-size: var(--base-font-size);
|
||||
line-height: 1.1;
|
||||
background: #000;
|
||||
background: var(--alt-color);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue