From ee6bd1d371fe41a9cb4769b20bd9786afbf43a9e Mon Sep 17 00:00:00 2001 From: Zovjsra <4703michael@gmail.com> Date: Wed, 27 May 2020 11:53:19 +0800 Subject: [PATCH 1/2] Debug mode --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 0471be9..d6c1967 100755 --- a/app.py +++ b/app.py @@ -126,4 +126,4 @@ def initPage(): if __name__ == "__main__": - app.run(debug=False, port=4980, host='0.0.0.0', threaded=True) + app.run(debug=True, port=4998, host='0.0.0.0', threaded=True) From 2c5e85c99ee83a85e6380d2b17db93d7b522295a Mon Sep 17 00:00:00 2001 From: Zovjsra <4703michael@gmail.com> Date: Wed, 3 Jun 2020 12:57:50 +0800 Subject: [PATCH 2/2] Fix bug --- app.py | 2 +- dataHandlerPTT.py | 2 +- resource/stopWords.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index d6c1967..0471be9 100755 --- a/app.py +++ b/app.py @@ -126,4 +126,4 @@ def initPage(): if __name__ == "__main__": - app.run(debug=True, port=4998, host='0.0.0.0', threaded=True) + app.run(debug=False, port=4980, host='0.0.0.0', threaded=True) diff --git a/dataHandlerPTT.py b/dataHandlerPTT.py index 5d81ae5..e314dc8 100755 --- a/dataHandlerPTT.py +++ b/dataHandlerPTT.py @@ -272,7 +272,7 @@ def loadPostContents(): def getDefault(startDate, endDate): global defaultDate if (startDate != defaultDate['startDate'] or endDate != defaultDate['endDate']): - loadPostContents + loadPostContents() defaultDate['startDate'] = startDate defaultDate['endDate'] = endDate print('更新預設資料') diff --git a/resource/stopWords.txt b/resource/stopWords.txt index ef7eca0..5a62672 100755 --- a/resource/stopWords.txt +++ b/resource/stopWords.txt @@ -14,6 +14,7 @@ 我 都 就 +會 完整 新聞 標題