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

Commit d071f73

Browse files
committed
Update srm practice problems api
1. Remove problem status filter from query.
1 parent a9205d6 commit d071f73

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

queries/get_practice_problems

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ INNER JOIN round_component rc ON rc.component_id = c.component_id
2828
INNER JOIN round r ON r.round_id = rc.round_id AND r.status = 'A' AND r.round_type_id = 3
2929
INNER JOIN room ro ON ro.round_id = rc.round_id AND ro.room_type_id = 3 -- practice room
3030
LEFT JOIN practice_component_state pcs ON pcs.round_id = rc.round_id AND pcs.component_id = c.component_id AND pcs.coder_id = @userId@
31-
WHERE p.status_id = 90
3231
)) srp
3332
WHERE 1=1
3433
ORDER BY @sortColumn@ @sortOrder@

queries/get_practice_problems_count

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ INNER JOIN round_component rc ON rc.component_id = c.component_id
2525
INNER JOIN round r ON r.round_id = rc.round_id AND r.status = 'A' AND r.round_type_id = 3
2626
INNER JOIN room ro ON ro.round_id = rc.round_id AND ro.room_type_id = 3 -- practice room
2727
LEFT JOIN practice_component_state pcs ON pcs.round_id = rc.round_id AND pcs.component_id = c.component_id AND pcs.coder_id = @userId@
28-
WHERE p.status_id = 90
2928
)) srp
3029
WHERE 1=1

0 commit comments

Comments
 (0)