From 9261c11d446208346d923205e4eaa496f1cc7de5 Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Thu, 7 Dec 2017 19:31:05 +0200 Subject: [PATCH] Exclude deploying contracts in open-bounties Fixes: #186 --- resources/sql/queries.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 2cdceb2..228e416 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -393,7 +393,7 @@ SELECT exists(SELECT 1 -- :name open-bounties :? :* --- :doc all bounty issues for given owner +-- :doc all open bounty issues SELECT i.contract_address AS contract_address, i.issue_id AS issue_id, @@ -414,7 +414,8 @@ SELECT FROM issues i, repositories r WHERE r.repo_id = i.repo_id -AND i.confirm_hash is null +AND i.contract_address IS NOT NULL +AND i.confirm_hash IS NULL AND i.is_open = true ORDER BY updated desc;