Do not write out new keys

This commit is contained in:
WQY\qiong
2023-06-03 05:39:36 +08:00
parent 905dd52198
commit 61afe5522b

View File

@@ -51,6 +51,9 @@ def inp_out_option(name: str) -> list[str]:
objs = read_all(name, f"select * from options")
for obj in objs:
key = obj['key']
# release version does not support new keys and has error message
if key == 'HTOL' or key == 'QTOL' or key == 'RQTOL':
continue
value = obj['value']
if str(value).strip() != '':
lines.append(f'{key} {value}')