bug fix: syntax error

docker
Steve L. Nyemba 5 years ago
parent 3a91a2422b
commit 8d2c1e6a43

@ -78,7 +78,7 @@ def format_time(value):
return ":".join([value[:2],value[2:] ])[:5] return ":".join([value[:2],value[2:] ])[:5]
def format_proc(value): def format_proc(value):
for xchar in [':','<'] : for xchar in [':','<'] :
if xchar in value and len(value.split(xchar)) == 2 if xchar in value and len(value.split(xchar)) == 2 :
_value = {"type":value.split(':')[0].strip(),"code":value.split(':')[1].strip()} _value = {"type":value.split(':')[0].strip(),"code":value.split(':')[1].strip()}
break break
else else

Loading…
Cancel
Save