From ea66e851110ee0c1ec6818bce2c7b2d2cb5233fe Mon Sep 17 00:00:00 2001 From: TonyJ Date: Mon, 13 Mar 2017 15:09:04 -0400 Subject: [PATCH] fixed bug in task exclusion --- queries/get_past_challenges_count | 2 -- 1 file changed, 2 deletions(-) diff --git a/queries/get_past_challenges_count b/queries/get_past_challenges_count index 12b383a68..88748347b 100644 --- a/queries/get_past_challenges_count +++ b/queries/get_past_challenges_count @@ -20,9 +20,7 @@ AND pi1.project_info_type_id = 1 and NVL(pp2.actual_end_time, pp2.scheduled_end_time) > '2012-01-01 00:00:00' AND pcl.project_category_id NOT IN (27, 37) --exclude when spec review was a 'contest.' Also exclude MM, which is in there as a 'software' contest. -- start of parameters - AND NVL(pp2.actual_end_time, pp2.scheduled_end_time) BETWEEN TO_DATE('@submission_end_from@ 00:00:00', '%Y-%m-%d %H:%M:%S') AND TO_DATE('@submission_end_to@ 23:59:59', '%Y-%m-%d %H:%M:%S') - AND LOWER(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@