Parse [RESERVOIRS]

This commit is contained in:
WQY\qiong
2022-11-12 14:51:03 +08:00
parent 749361fd47
commit fb9bef103a
3 changed files with 46 additions and 12 deletions

View File

@@ -33,11 +33,11 @@ class InpTitle:
def inp_in_title(section: list[str]) -> ChangeSet:
title = InpTitle(section)
cs = ChangeSet({'operation' : API_ADD, 'type': 'title', 'value' : title.value})
obj = InpTitle(section)
cs = ChangeSet({'operation' : API_ADD, 'type': 'title', 'value' : obj.value})
return cs
def inp_out_title(name: str) -> list[str]:
title = str(get_title(name)['value'])
return title.split('\n')
obj = str(get_title(name)['value'])
return obj.split('\n')