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