Fixed Status in Telegram
This commit is contained in:
@@ -31,12 +31,12 @@ def fromstring (data):
|
|||||||
tel.attrib['startts'] = ''
|
tel.attrib['startts'] = ''
|
||||||
tel.attrib['endts'] = strftime ("%Y-%m-%d %H:%M:%S ")
|
tel.attrib['endts'] = strftime ("%Y-%m-%d %H:%M:%S ")
|
||||||
#66-70 Varianten daten
|
#66-70 Varianten daten
|
||||||
tel.attrib['bauteilstatus'] = '1'
|
tel.attrib['bauteilstatus'] = 'i.O.'
|
||||||
for i in range (1, 43):
|
for i in range (1, 43):
|
||||||
st = bearbeitungsstatus.get (chr (data [38 + i -1]), '') #0 - unbearbeitet; 1 - iO; 2 - niO
|
st = bearbeitungsstatus.get (chr (data [38 + i -1]), '') #0 - unbearbeitet; 1 - iO; 2 - niO
|
||||||
tel.attrib['pp%02d' % i] = st
|
tel.attrib['pp%02d' % i] = st
|
||||||
if st == '2':
|
if st == 'n.i.O.':
|
||||||
tel.attrib['bauteilstatus'] = '2'
|
tel.attrib['bauteilstatus'] = 'n.i.O.'
|
||||||
tel.attrib['ladungstraeger'] = ''
|
tel.attrib['ladungstraeger'] = ''
|
||||||
return tel
|
return tel
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user