diff options
Diffstat (limited to 'python/process_queue.py')
| -rw-r--r-- | python/process_queue.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/process_queue.py b/python/process_queue.py index 360081b3..9a43f9f3 100644 --- a/python/process_queue.py +++ b/python/process_queue.py @@ -423,7 +423,7 @@ def build_line(obj, trade_type="bond", fund="SERCGMAST"): } rename_keys(obj, rename_cols) - if trade_type in ["bond", "swaption", "future"]: + if trade_type in ("bond", "swaption", "future"): obj["Transaction Indicator"] = "Buy" if obj["buysell"] else "Sell" if trade_type == "bond": obj["Deal Type"] = "MortgageDeal" @@ -996,7 +996,6 @@ def build_termination( csvwriter = csv.DictWriter(buf, headers) csvwriter.writeheader() csvwriter.writerow(d) - timestamp = datetime.datetime.now() trade_type = (deal_type, "A") if is_assignment else (deal_type, "T") return buf.getvalue().encode(), trade_type |
