From d2386314a85aeaed67a6afb45b09b9b059034f07 Mon Sep 17 00:00:00 2001 From: ajefts Date: Fri, 28 Apr 2017 11:25:13 -0400 Subject: [PATCH 1/2] removed comment to fix syntax error --- queries/get_past_challenges_count | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/get_past_challenges_count b/queries/get_past_challenges_count index 88748347b..0adb68d0f 100644 --- a/queries/get_past_challenges_count +++ b/queries/get_past_challenges_count @@ -30,4 +30,4 @@ AND (not exists (select contest_id from contest_eligibility where contest_id = p or exists(select contest_id from contest_eligibility ce, group_contest_eligibility gce, user_group_xref x where x.login_id = @user_id@ AND x.group_id = gce.group_id AND gce.contest_eligibility_id = ce.contest_eligibility_id AND ce.contest_id = p.project_id)) -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 \ No newline at end of file +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) From 71d7a21142a02a81f3b2f85e30bbe4a54710d712 Mon Sep 17 00:00:00 2001 From: ajefts Date: Fri, 28 Apr 2017 11:25:48 -0400 Subject: [PATCH 2/2] removed comment to fix syntax error --- queries/get_open_challenges_count | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/queries/get_open_challenges_count b/queries/get_open_challenges_count index 52cc31b2d..863788407 100644 --- a/queries/get_open_challenges_count +++ b/queries/get_open_challenges_count @@ -32,4 +32,5 @@ AND pn.value LIKE ('@challenge_name@') 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@ 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@ AND p.tc_direct_project_id = DECODE(@project_id@, 0, p.tc_direct_project_id, @project_id@) -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 +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) +