First pass scan
This commit is contained in:
@@ -40,6 +40,18 @@ def inp_in_option(section: list[str]) -> ChangeSet:
|
||||
return result
|
||||
|
||||
|
||||
def inp_in_option_new(name: str, section: list[str]) -> None:
|
||||
result = inp_in_option(section)
|
||||
for op in result.operations:
|
||||
for key in op.keys():
|
||||
if key == 'operation' or key == 'type':
|
||||
continue
|
||||
if op['type'] == 'option':
|
||||
write(name, f"update options set value = '{op[key]}' where key = '{key}';")
|
||||
else:
|
||||
write(name, f"update options_v3 set value = '{op[key]}' where key = '{key}';")
|
||||
|
||||
|
||||
def inp_out_option(name: str) -> list[str]:
|
||||
lines = []
|
||||
objs = read_all(name, f"select * from options")
|
||||
|
||||
Reference in New Issue
Block a user