diff --git a/main.py b/main.py index d760b68..847f51c 100644 --- a/main.py +++ b/main.py @@ -353,7 +353,7 @@ def buildPort(): curs.execute(sql, data) conn.close() print("\n------Write in Success--------\n") - return jsonify({'mes': '投資組合已完成建立,請至gooooooo查詢分析結果。'}) + return '''投資組合已完成建立,請至#TODO:insert link查詢分析結果。''' diff --git a/static/js/addStock.js b/static/js/addStock.js index 61ab08f..fb3a517 100644 --- a/static/js/addStock.js +++ b/static/js/addStock.js @@ -101,7 +101,8 @@ $sendPort.click(function(event) { console.log(response); // var res = JSON.parse(response); event.preventDefault(); - $('#confirmMes').text(response.mes) + // $('#confirmMes').text('') + $('#confirmMes').replaceWith(response); if (stockList.length > 0){ $('#confirmModal').modal('show'); } diff --git a/templates/result.html b/templates/result.html index 5e1b979..52847c1 100644 --- a/templates/result.html +++ b/templates/result.html @@ -72,7 +72,7 @@ body { - {{ info[0] }} + {{ info[0] }} {{ info[2] }} @@ -93,3 +93,7 @@ body { {% endblock %} +{% block script %} + + +{% endblock script %} diff --git a/templates/strategy_tw.html b/templates/strategy_tw.html index b7b6b61..01d4d4b 100644 --- a/templates/strategy_tw.html +++ b/templates/strategy_tw.html @@ -156,7 +156,11 @@ body {