diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/Dawn/static/dawn.js | 2 | ||||
| -rw-r--r-- | python/Dawn/views.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/python/Dawn/static/dawn.js b/python/Dawn/static/dawn.js index 886f304b..a45411f4 100644 --- a/python/Dawn/static/dawn.js +++ b/python/Dawn/static/dawn.js @@ -164,7 +164,7 @@ $(function() { if( $(this).prop('checked') ) { $('#termination_amount').parent().parent().css('display', 'block'); } else { - ('#termination_amount').val(''); + $('#termination_amount').val(''); $('#termination_amount').parent().parent().css('display', 'none'); } } diff --git a/python/Dawn/views.py b/python/Dawn/views.py index 88c1450a..3176d834 100644 --- a/python/Dawn/views.py +++ b/python/Dawn/views.py @@ -426,6 +426,9 @@ def terminate(dealid, kind): app.logger.error(e) session.rollback() else: + buf = simple_serialize(termination) + q = get_queue() + q.rpush(f"{kind}_termination", buf) return redirect(url_for("list_trades", kind=kind)) else: return render_template( |
