diff options
Diffstat (limited to 'python/report_ops/custodians.py')
| -rw-r--r-- | python/report_ops/custodians.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py index e225bb4d..f6ef4c6c 100644 --- a/python/report_ops/custodians.py +++ b/python/report_ops/custodians.py @@ -36,7 +36,7 @@ def upload_to_custodian(account, trade_date, upload, em): ] ): old_trade = BondDeal.from_dict( - row._asdict() | old_row._asdict(), scaled=True + **(row._asdict() | old_row._asdict()), scaled=True ) custodian.push_trade(old_trade, "CANCEL") d.execute( @@ -50,7 +50,7 @@ def upload_to_custodian(account, trade_date, upload, em): ) else: continue - trade = BondDeal.from_dict(row._asdict(), scaled=True) + trade = BondDeal.from_dict(**row._asdict(), scaled=True) custodian.push_trade(trade, "NEW") if not custodian.staging_queue: return |
