From 8ce8a6a5a627df9f78f5eb466f3b5ca4cca396a0 Mon Sep 17 00:00:00 2001 From: Ihsan Ullah Date: Tue, 16 May 2023 20:55:29 +0500 Subject: [PATCH 1/3] Score shown in submission panel for user and admin --- .../riot/competitions/detail/submission_manager.tag | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/static/riot/competitions/detail/submission_manager.tag b/src/static/riot/competitions/detail/submission_manager.tag index 0dd92d7d2..057cd089b 100644 --- a/src/static/riot/competitions/detail/submission_manager.tag +++ b/src/static/riot/competitions/detail/submission_manager.tag @@ -62,7 +62,8 @@ Owner Phase Date - Status + Status + Score Actions @@ -94,6 +95,7 @@ + {get_score(submission)} Date: Wed, 17 May 2023 11:49:42 +0500 Subject: [PATCH 2/3] selenium test updated for click to the right table td --- src/tests/functional/test_submissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/functional/test_submissions.py b/src/tests/functional/test_submissions.py index 8f13064b4..2beba29f1 100644 --- a/src/tests/functional/test_submissions.py +++ b/src/tests/functional/test_submissions.py @@ -68,7 +68,7 @@ def _run_submission_and_add_to_leaderboard(self, competition_zip_path, submissio submission_id = int(self.find('submission-manager#user-submission-table table tbody tr:nth-of-type(1) td:nth-of-type(1)').text) # Add the submission to the leaderboard and go to results tab - self.find('submission-manager#user-submission-table table tbody tr:nth-of-type(1) td:nth-of-type(5) span[data-tooltip="Add to Leaderboard"]').click() + self.find('submission-manager#user-submission-table table tbody tr:nth-of-type(1) td:nth-of-type(6) span[data-tooltip="Add to Leaderboard"]').click() self.find('.item[data-tab="results-tab"]').click() # The leaderboard table lists our submission From 96fda39d7fef4b8c6dafa9ad990d05758f55fb8c Mon Sep 17 00:00:00 2001 From: Ihsan Ullah Date: Wed, 17 May 2023 15:46:14 +0500 Subject: [PATCH 3/3] debug log removed --- src/apps/api/views/competitions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/apps/api/views/competitions.py b/src/apps/api/views/competitions.py index 666a2f5ab..b104c69a6 100644 --- a/src/apps/api/views/competitions.py +++ b/src/apps/api/views/competitions.py @@ -97,7 +97,6 @@ def get_queryset(self): # On GETs lets optimize the query to reduce DB calls if self.request.method == 'GET': - logger.warning("\n\nGET\n\n") qs = qs.select_related('created_by') if self.action != 'list': qs = qs.select_related('created_by')