First pass scan

This commit is contained in:
WQY\qiong
2023-03-09 22:44:13 +08:00
parent 369e636e13
commit 96cb99b87a
11 changed files with 156 additions and 7 deletions

View File

@@ -38,6 +38,15 @@ def inp_in_backdrop(section: list[str]) -> ChangeSet:
return ChangeSet()
def inp_in_backdrop_new(name: str, section: list[str]) -> None:
if section == []:
return
content = '\n'.join(section)
sql = f"update backdrop set content = '{content}';"
write(name, sql)
def inp_out_backdrop(name: str) -> list[str]:
obj = str(get_backdrop(name)['content'])
return obj.split('\n')