Skip to content

Commit b7ad056

Browse files
authored
Merge pull request #23 from topcoder-platform/feature-exclude-hackathon-challenge
Updated Script to exclude challenge for Consensys Hackathon
2 parents d33190d + e083e93 commit b7ad056

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tco_setup/tco18_eligible_contests.sql

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ WHERE p.project_status_id = 1
6363
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
6464
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
6565
and p.project_id not in (30057468, 30057606) -- exclude specific challenges
66+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
6667
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407) -- exclude projects for fun and university challenges
6768
and 1=1;
6869
-- and mod(p.project_id, 2) = 0;
@@ -84,6 +85,7 @@ WHERE p.project_status_id = 1
8485
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
8586
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
8687
and p.project_id not in (30057968) -- exclude specific challenges
88+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
8789
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
8890
and 1 = 1;
8991
-- and mod(p.project_id, 2) = 0;
@@ -145,6 +147,7 @@ WHERE p.project_status_id = 1
145147
and p.project_id not in (select project_id from contest_project_xref where contest_id in (650, 583)) -- make sure we exclude from tco
146148
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
147149
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
150+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
148151
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
149152
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
150153
and 1 = 1;
@@ -166,6 +169,7 @@ WHERE p.project_status_id = 1
166169
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
167170
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
168171
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
172+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
169173
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
170174
and 1 = 1;
171175
-- and mod(p.project_id, 2) = 0;
@@ -226,6 +230,7 @@ WHERE p.project_status_id = 1
226230
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
227231
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
228232
and p.project_id not in (30057516) -- exclude specific challenges
233+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
229234
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
230235
and 1 = 1;
231236
-- and mod(p.project_id, 2) = 0;
@@ -245,6 +250,7 @@ WHERE p.project_status_id = 1
245250
and p.project_id not in (select project_id from contest_project_xref where contest_id in (646, 583)) -- make sure we exclude from tco
246251
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
247252
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
253+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
248254
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
249255
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407) -- exclude projects for fun and university challenges
250256
and 1 = 1;
@@ -304,6 +310,8 @@ WHERE p.project_status_id = 1
304310
and p.project_id not in (select project_id from contest_project_xref where contest_id in (640, 583)) -- make sure we exclude from tco
305311
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
306312
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
313+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
314+
307315
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
308316
-- and mod(p.project_id, 2) = 0;
309317
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
@@ -323,7 +331,8 @@ WHERE p.project_status_id = 1
323331
and p.project_id not in (select project_id from contest_project_xref where contest_id in (641, 583)) -- make sure we exclude from tco
324332
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
325333
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
326-
and p.project_id not in (30057968,30057832,30057829,30057831) -- exclude specific challenges
334+
and p.project_id not in (30057968,30057832,30057829,30057831) -- exclude specific challenges
335+
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
327336
and (select lower(value) from project_info where project_id = p.project_id and project_info_type_id = 6) not like 'ibm cognitive%' -- exclude IBM Cognitive Community Segment
328337
-- and mod(p.project_id, 2) = 0;
329338
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges

0 commit comments

Comments
 (0)