From eade5dd009d6750bbcbbd166b03bd730b940c1e0 Mon Sep 17 00:00:00 2001 From: SeanChenTaipei Date: Mon, 13 Mar 2023 22:54:06 +0800 Subject: [PATCH] cool --- main.py | 5 +++-- templates/base.html | 2 -- templates/result_view.html | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 3b223a7..de81730 100644 --- a/main.py +++ b/main.py @@ -276,8 +276,9 @@ def buildPort(): return redirect(url_for('index')) # Stop frequently building strategy if time.time() - session['lastCreateTime'] < 60: - print("UNTIL: ", time.time()-session['lastCreateTime']) - return '''投資組合建立時間間隔(或與登入時間間隔)必須大於60秒!''' + less = round(time.time()-session['lastCreateTime'], 1) + print("UNTIL: ", less) + return f'投資組合建立時間間隔(或與登入時間間隔)必須大於60秒!差距: {less} 秒。' session['lastCreateTime'] = time.time() for key in request.form: print(key, request.form[key], type(request.form[key])) diff --git a/templates/base.html b/templates/base.html index 3f83037..b67284d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -417,8 +417,6 @@ } }; - - {% endblock %} diff --git a/templates/result_view.html b/templates/result_view.html index 42970f4..719299d 100644 --- a/templates/result_view.html +++ b/templates/result_view.html @@ -151,7 +151,6 @@ {% block script %} -