diff --git a/flask/testapp/static/javascript/beautyVote.js b/flask/testapp/static/javascript/beautyVote.js index 74e43b2..58990db 100644 --- a/flask/testapp/static/javascript/beautyVote.js +++ b/flask/testapp/static/javascript/beautyVote.js @@ -235,7 +235,7 @@ var xhr = new XMLHttpRequest(); -var round = 0; +var round = 0; //変更 var MAX_ROUND = 10; var timer = 0; diff --git a/flask/testapp/views.py b/flask/testapp/views.py index c3b0f53..2d07cb3 100644 --- a/flask/testapp/views.py +++ b/flask/testapp/views.py @@ -8,7 +8,7 @@ # playerの数 -MAX_PLAYER = 2 +MAX_PLAYER = 1 # scoreを保存するデータ data = [0] * MAX_PLAYER @@ -107,6 +107,6 @@ get_sorted_numbers_with_indices = sorted(enumerate(get_data), key=lambda x: x[1], reverse=True) get_scores = [item[1] for item in get_sorted_numbers_with_indices] get_labels = [item[0] for item in get_sorted_numbers_with_indices] - print("スコア:" + get_scores) - print("識別番号:" + get_labels) + print("スコア:" + str(get_scores)) + print("識別番号:" + str(get_labels)) return get_scores, get_labels