diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/process_queue.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/process_queue.py b/python/process_queue.py index a878feeb..ed1254ab 100644 --- a/python/process_queue.py +++ b/python/process_queue.py @@ -331,9 +331,9 @@ def build_line(obj, trade_type="bond", fund="SERCGMAST"): "spot_rate": fx_rate, }, ) - elif trade_type == 'repo': - obj['Deal Type'] = 'RepoDeal' - obj['OpenRepo'] = 'Y' if obj['open_repo'] else 'N' + elif trade_type == "repo": + obj["Deal Type"] = "RepoDeal" + obj["OpenRepo"] = "Y" if obj["open_repo"] else "N" rename_keys( obj, { @@ -341,8 +341,8 @@ def build_line(obj, trade_type="bond", fund="SERCGMAST"): "weighted_amount": "WeightedAmount", "repo_rate": "RepoRate", "daycount": "DayCount", - "transaction_indicator": "TransactionIndicator" - } + "transaction_indicator": "TransactionIndicator", + }, ) return [obj.get(h, None) for h in get_headers(trade_type, fund)] @@ -640,7 +640,7 @@ def get_filepath( "wire": "CashFlowDeal", "spot": "SpotDeal", "capfloor": "TODO", - "repo": "RepoDeal" + "repo": "RepoDeal", } trade_tag: str if isinstance(trade_type, tuple): |
