Fix balance update criteria

Include issue.is_open status when considering a bounty open.

Fixes: #151
This commit is contained in:
Teemu Patja 2017-11-07 13:44:58 +02:00
parent 62f955683c
commit 397d74e670
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 2 additions and 1 deletions

View File

@ -493,7 +493,8 @@ SELECT
FROM issues i, repositories r FROM issues i, repositories r
WHERE r.repo_id = i.repo_id WHERE r.repo_id = i.repo_id
AND contract_address IS NOT NULL AND contract_address IS NOT NULL
AND i.confirm_hash IS NULL; AND i.confirm_hash IS NULL
AND i.is_open = true;
-- :name get-bounty :? :1 -- :name get-bounty :? :1
-- :doc details for a bounty issue given owner, repo and issue nunber -- :doc details for a bounty issue given owner, repo and issue nunber