fix bug
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user