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

Commit d667715

Browse files
authored
Merge pull request #500 from appirio-tech/dev
query fixes
2 parents d9c1d47 + 71d7a21 commit d667715

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: queries/get_open_challenges_count

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ AND pn.value LIKE ('@challenge_name@')
3232
AND NVL((SELECT pr.prize_amount FROM prize pr WHERE pr.project_id = p.project_id AND pr.prize_type_id = 15 AND pr.place = 1), 0) >= @prize_lower_bound@
3333
AND NVL((SELECT pr.prize_amount FROM prize pr WHERE pr.project_id = p.project_id AND pr.prize_type_id = 15 AND pr.place = 1), 0) <= @prize_upper_bound@
3434
AND p.tc_direct_project_id = DECODE(@project_id@, 0, p.tc_direct_project_id, @project_id@)
35-
AND not exists (select 1 from resource r, project_info pi82 where r.project_id = p.project_id and r.resource_role_id = 1 and p.project_id = pi82.project_id and project_info_type_id = 82 and pi82.value = 1) -- exclude assigned tasks
35+
AND not exists (select 1 from resource r, project_info pi82 where r.project_id = p.project_id and r.resource_role_id = 1 and p.project_id = pi82.project_id and project_info_type_id = 82 and pi82.value = 1)
36+

Diff for: queries/get_past_challenges_count

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ AND (not exists (select contest_id from contest_eligibility where contest_id = p
3030
or exists(select contest_id from contest_eligibility ce, group_contest_eligibility gce, user_group_xref x
3131
where x.login_id = @user_id@ AND x.group_id = gce.group_id AND gce.contest_eligibility_id = ce.contest_eligibility_id
3232
AND ce.contest_id = p.project_id))
33-
AND not exists (select 1 from resource r, project_info pi82 where r.project_id = p.project_id and r.resource_role_id = 1 and p.project_id = pi82.project_id and project_info_type_id = 82 and pi82.value = 1) -- exclude assigned tasks
33+
AND not exists (select 1 from resource r, project_info pi82 where r.project_id = p.project_id and r.resource_role_id = 1 and p.project_id = pi82.project_id and project_info_type_id = 82 and pi82.value = 1)

0 commit comments

Comments
 (0)