Skip to content

Updated Script to exclude challenge for Consensys Hackathon #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tco_setup/tco18_eligible_contests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
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
and p.project_id not in (30057468, 30057606) -- exclude specific challenges
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407) -- exclude projects for fun and university challenges
and 1=1;
-- and mod(p.project_id, 2) = 0;
Expand All @@ -84,6 +85,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
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
and p.project_id not in (30057968) -- exclude specific challenges
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
and 1 = 1;
-- and mod(p.project_id, 2) = 0;
Expand Down Expand Up @@ -145,6 +147,7 @@ WHERE p.project_status_id = 1
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
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
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
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
and 1 = 1;
Expand All @@ -166,6 +169,7 @@ WHERE p.project_status_id = 1
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
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
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
and 1 = 1;
-- and mod(p.project_id, 2) = 0;
Expand Down Expand Up @@ -226,6 +230,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
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
and p.project_id not in (30057516) -- exclude specific challenges
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
and 1 = 1;
-- and mod(p.project_id, 2) = 0;
Expand All @@ -245,6 +250,7 @@ WHERE p.project_status_id = 1
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
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
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
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407) -- exclude projects for fun and university challenges
and 1 = 1;
Expand Down Expand Up @@ -304,6 +310,8 @@ WHERE p.project_status_id = 1
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
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain

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
-- and mod(p.project_id, 2) = 0;
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
Expand All @@ -323,7 +331,8 @@ WHERE p.project_status_id = 1
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
and p.project_id not in (select ce.contest_id from contest_eligibility ce)
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.project_id not in (30057968,30057832,30057829,30057831) -- exclude specific challenges
and p.project_id not in (30057968,30057832,30057829,30057831) -- exclude specific challenges
and p.project_id not in (30063672, 30063673, 30063674, 30063675, 30063676 ) -- exclude consensys blockchain
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
-- and mod(p.project_id, 2) = 0;
and p.tc_direct_project_id not in (16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
Expand Down