diff options
Diffstat (limited to 'python/report_ops')
| -rw-r--r-- | python/report_ops/custodians.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py index aaba9fa2..c9728055 100644 --- a/python/report_ops/custodians.py +++ b/python/report_ops/custodians.py @@ -50,8 +50,9 @@ def upload_to_custodian(account, trade_date, upload, em): ) else: continue - trade = BondDeal.from_dict(**row._asdict(), scaled=True) - custodian.push_trade(trade, "NEW") + else: + trade = BondDeal.from_dict(**row._asdict(), scaled=True) + custodian.push_trade(trade, "NEW") if not custodian.staging_queue: return buf, dest = custodian.build_buffer("bond") |
