Exclude deploying contracts in open-bounties

Fixes: #186
This commit is contained in:
Teemu Patja 2017-12-07 19:31:05 +02:00
parent 6e3dc7be0a
commit 4c1629a32e
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 3 additions and 2 deletions

View File

@ -393,7 +393,7 @@ SELECT exists(SELECT 1
-- :name open-bounties :? :* -- :name open-bounties :? :*
-- :doc all bounty issues for given owner -- :doc all open bounty issues
SELECT SELECT
i.contract_address AS contract_address, i.contract_address AS contract_address,
i.issue_id AS issue_id, i.issue_id AS issue_id,
@ -414,7 +414,8 @@ SELECT
FROM issues i, repositories r FROM issues i, repositories r
WHERE WHERE
r.repo_id = i.repo_id 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 AND i.is_open = true
ORDER BY updated desc; ORDER BY updated desc;