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

@@ -40,6 +40,15 @@ def inp_in_title(section: list[str]) -> ChangeSet:
return ChangeSet(g_update_prefix | {'type': 'title', 'value' : obj.value})
def inp_in_title_new(name: str, section: list[str]) -> None:
if section == []:
return
title = '\n'.join(section)
sql = f"update title set value = '{title}';"
write(name, sql)
def inp_out_title(name: str) -> list[str]:
obj = str(get_title(name)['value'])
return obj.split('\n')