fix DTC interpretation visibility, fix in db_manager

This commit is contained in:
shrlnm 2023-04-16 07:50:35 +03:00
parent eb5a01597f
commit c7ab0786ff
2 changed files with 6 additions and 3 deletions

View File

@ -180,7 +180,10 @@ def file_in_clip( pattern ):
return pattern in glob.glob(pattern)
else:
file_list = mod_globals.clip_arc.namelist()
return pattern in file_list
for l in file_list:
if pattern.lower() == l.lower():
return l
return ''
def extract_from_clip_to_cache( filename ):
if mod_globals.clip_arc == '':

4
pyren3/mod_ecu_default.py Executable file → Normal file
View File

@ -218,8 +218,8 @@ def get_default_std_b( df, mn, se, elm, calc, getDTCmnemo ):
else:
chr_val = '' # I'm no sure that it is right
if str(chr_val).encode("utf-8") in list(df[dtc].caracter.keys()):
interpretation = df[dtc].caracter[str(chr_val).encode("utf-8")]
if str(chr_val) in list(df[dtc].caracter.keys()):
interpretation = df[dtc].caracter[str(chr_val)]
else:
interpretation = ''