This commit is contained in:
2026-09-11 17:40:51 +08:00
parent af790bca28
commit bcb03e2ed9
4 changed files with 317 additions and 126 deletions

View File

@@ -87,6 +87,10 @@ class State:
db.row_factory = sqlite3.Row
return db
def get_by_code(self,code: str) -> dict:
s = self.state.get(code,{})
return s
def load(self) -> None:
"""缓存状态表和成交记录。"""
self.load_state()