aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn')
-rw-r--r--python/Dawn/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index 7be9ff1f..14591589 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -370,14 +370,14 @@ def trade_manage(tradeid, kind):
trade.cashaccount = trade.fcm_account.cash_account
session.commit()
if form.upload_globeop.data and form.fund.data == "SERCGMAST":
- if kind == "bond":
+ if kind in ["bond", "cds"]:
buf = simple_serialize(trade, upload=True)
else:
buf = simple_serialize(trade)
q = get_queue()
q.rpush(f"{kind}_trades", buf)
else:
- if kind == "bond":
+ if kind in ["bond", "cds"]:
q = get_queue()
q.rpush(f"{kind}_trades", simple_serialize(trade))
return redirect(url_for('list_trades', kind=kind))