Optimize control and rule
This commit is contained in:
@@ -48,9 +48,8 @@ def inp_in_control(section: list[str]) -> ChangeSet:
|
||||
return ChangeSet()
|
||||
|
||||
|
||||
def inp_in_control_new(name: str, section: list[str]) -> None:
|
||||
for line in section:
|
||||
write(name, f"insert into controls (line) values ('{line}');")
|
||||
def inp_in_control_new(name: str, line: str) -> None:
|
||||
write(name, f"insert into controls (line) values ('{line}');")
|
||||
|
||||
|
||||
def inp_out_control(name: str) -> list[str]:
|
||||
|
||||
@@ -44,9 +44,8 @@ def inp_in_rule(section: list[str]) -> ChangeSet:
|
||||
return ChangeSet()
|
||||
|
||||
|
||||
def inp_in_rule_new(name: str, section: list[str]) -> None:
|
||||
for line in section:
|
||||
write(name, f"insert into rules (line) values ('{line}');")
|
||||
def inp_in_rule_new(name: str, line: str) -> None:
|
||||
write(name, f"insert into rules (line) values ('{line}');")
|
||||
|
||||
|
||||
def inp_out_rule(name: str) -> list[str]:
|
||||
|
||||
Reference in New Issue
Block a user