fix ddt PID csv generation

This commit is contained in:
shrlnm 2023-04-23 17:43:40 +03:00
parent 6b9a42fb99
commit b0773ab521
2 changed files with 2 additions and 2 deletions

View File

@ -1058,7 +1058,7 @@ class DDTECU():
def bukva( self, bt, l, sign=False): def bukva( self, bt, l, sign=False):
S1 = chr ((bt - l) % 26 + ord ('A')) S1 = chr ((bt - l) % 26 + ord ('A'))
ex = int (bt - l) / 26 ex = int (bt - l) // 26
if ex: if ex:
S2 = chr ((ex - 1) % 26 + ord ('A')) S2 = chr ((ex - 1) % 26 + ord ('A'))
S1 = S2 + S1 S1 = S2 + S1

View File

@ -1157,7 +1157,7 @@ class DDTScreen (tk.Frame):
cs = cs + l_Unit + '","' cs = cs + l_Unit + '","'
cs = cs + l_header + '"\n' cs = cs + l_header + '"\n'
fcsv.write(cs.encode('utf-8')) fcsv.write(cs)
fcsv.close() fcsv.close()
del(usedmnemo) del(usedmnemo)