Add default DTC status string
This commit is contained in:
parent
996fd9091d
commit
800f3ae905
@ -85,9 +85,9 @@ def get_default_std_a( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1:
|
if df[dtc].status==1:
|
||||||
isAlive = mod_globals.language_dict['16882'] #ALIVE
|
isAlive = mod_globals.language_dict.get('16882', 'ALIVE')
|
||||||
else:
|
else:
|
||||||
isAlive = mod_globals.language_dict['646'] #MEMORISED
|
isAlive = mod_globals.language_dict.get('646', 'MEMORISED')
|
||||||
#if not mod_globals.opt_minordtc:
|
#if not mod_globals.opt_minordtc:
|
||||||
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||||
# DTCs = DTCs[9:]
|
# DTCs = DTCs[9:]
|
||||||
@ -199,8 +199,8 @@ def get_default_std_b( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
if df[dtc].status==1: isAlive = mod_globals.language_dict.get('16882', 'ALIVE') #ALIVE
|
||||||
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
else: isAlive = mod_globals.language_dict.get('646', 'MEMORISED') #MEMORISED
|
||||||
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||||
# DTCs = DTCs[12:]
|
# DTCs = DTCs[12:]
|
||||||
# continue
|
# continue
|
||||||
@ -307,8 +307,8 @@ def get_default_failflag( df, mn, se, elm, calc ):
|
|||||||
if df[dtc].status==0: #it is not a problem
|
if df[dtc].status==0: #it is not a problem
|
||||||
continue
|
continue
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
if df[dtc].status==1: isAlive = mod_globals.language_dict.get('16882', 'ALIVE') #ALIVE
|
||||||
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
else: isAlive = mod_globals.language_dict.get('646', 'MEMORISED') #MEMORISED
|
||||||
|
|
||||||
# Now get the interpretation
|
# Now get the interpretation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user