Skip to content

Commit

Permalink
expose Ledger in resp
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Jul 19, 2023
1 parent 171c5aa commit e76e805
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions absbox/local/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
china_rs_flow_fields_d = ["日期", "面额", "变动额", "支付","收取","净额","备注"]
english_rs_flow_fields_d = ["date", "balance", "amount", "pay","receive","due","memo"]

# Ledger
china_ledger_flow_fields_d = ["日期", "余额", "变动额", "备注"]
english_ledger_flow_fields_d = ["date", "balance", "amount", "comment"]

# Index


Expand Down
1 change: 1 addition & 0 deletions absbox/local/china.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def read(resp):
, 'accounts': ('accStmt', china_acc_flow_fields_d , "账户")
, 'liqProvider': ('liqStmt', china_liq_flow_fields_d, "流动性支持")
, 'rateSwap': ('rsStmt', china_rs_flow_fields_d, "")
, 'ledgers': ('ledgStmt', china_ledger_flow_fields_d, "")
}
assert isinstance(resp,list),f"<read>:resp should be list,but it is {type(resp)} => {resp}"
deal_content = resp[0]['contents']
Expand Down
1 change: 1 addition & 0 deletions absbox/local/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def read(resp):
, 'accounts': ('accStmt' , english_acc_flow_fields_d , "account")
, 'liqProvider': ('liqStmt', english_liq_flow_fields_d, "")
, 'rateSwap': ('rsStmt', english_rs_flow_fields_d, "")
, 'ledgers': ('ledgStmt', english_ledger_flow_fields_d, "")
}
deal_content = resp[0]['contents']
output = {}
Expand Down

0 comments on commit e76e805

Please sign in to comment.