Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit f465e8a

Browse files
committed
update get rounds api to fix sorting problem and filtering practice round
1 parent 9ecbb1c commit f465e8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

actions/rounds.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var TIME_FILTER_COLUMNS = [
6565

6666
// the sort columns
6767
var SORT_COLUMNS = {
68-
"name": "name",
68+
"name": "r.name",
6969
"registrationPhaseStartTime": "start_time_1",
7070
"registrationPhaseEndTime": "end_time_1",
7171
"codingPhaseStartTime": "start_time_2",
@@ -434,7 +434,7 @@ exports.getRounds = {
434434
description: "Get Rounds",
435435
inputs: {
436436
required: [],
437-
optional: ["pageSize", "pageIndex", "sortColumn", "sortOrder", "name"].concat(FILTER_COLUMNS).concat(TIME_FILTER_COLUMNS)
437+
optional: ["pageSize", "pageIndex", "sortColumn", "sortOrder", "name"].concat(FILTER_COLUMNS).concat(TIME_FILT ER_COLUMNS)
438438
},
439439
blockedConnectionTypes: [],
440440
outputExample: {},

queries/get_rounds

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,5 @@ SELECT
142142
LEFT OUTER JOIN round_segment rs7
143143
ON r.round_id=rs7.round_id and rs7.segment_id = 7
144144
)
145-
WHERE @filterCondition@
145+
WHERE r.round_type_id != 3 AND @filterCondition@
146146
ORDER BY @sortColumn@ @sortOrder@

0 commit comments

Comments
 (0)