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

Commit fb1d9ab

Browse files
committed
fix get rounds api
1 parent 2f3633c commit fb1d9ab

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

actions/rounds.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ var getRounds = function (api, connection, dbConnectionMap, next) {
342342
"shortName": rounds[i].short_name,
343343
"type": rounds[i].round_type_desc,
344344
"status": rounds[i].round_status ? rounds[i].round_status.trim() : rounds[i].round_status,
345+
"autoEnd": rounds[i].auto_end,
345346
"registrationLimit": rounds[i].registration_limit,
346347
"invitationalType": rounds[i].invitational ? rounds[i].invitational.trim() : rounds[i].invitational,
347348
"region": rounds[i].region_name,

queries/get_rounds

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ SELECT
33
FIRST @pageSize@
44
r.round_id as id,
55
r.name as name,
6-
r.short_name as short_name,
6+
r.short_name as short_name,
7+
r.auto_end as auto_end,
78
rt.round_type_desc,
89
c.contest_id as contest_id,
910
c.name as contest_name,

queries/get_rounds_count

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ count(*) as total_count
2020
LEFT OUTER JOIN round_segment rs7
2121
ON r.round_id=rs7.round_id and rs7.segment_id = 7
2222
)
23-
WHERE @filterCondition@
23+
WHERE r.round_type_id != 3 AND @filterCondition@

0 commit comments

Comments
 (0)