diff --git a/augur/datasources/augur_db/augur_db.py b/augur/datasources/augur_db/augur_db.py index f5272ba966..695ed8b550 100644 --- a/augur/datasources/augur_db/augur_db.py +++ b/augur/datasources/augur_db/augur_db.py @@ -1131,8 +1131,8 @@ def issues_closed_resolution_duration(self, repo_group_id, repo_id=None, period= repo_name, gh_issue_number, issue_title, - date_trunc(:period,issues.created_at), - date_trunc(:period,issues.closed_at), + date_trunc(:period, issues.created_at) as created_at, + date_trunc(:period, issues.closed_at) as closed_at, EXTRACT(DAY FROM closed_at - issues.created_at) AS DIFFDATE FROM issues, repo @@ -1149,8 +1149,8 @@ def issues_closed_resolution_duration(self, repo_group_id, repo_id=None, period= repo_name, gh_issue_number, issue_title, - date_trunc(:period, issues.created_at), - date_trunc(:period, issues.closed_at), + date_trunc(:period, issues.created_at) as created_at, + date_trunc(:period, issues.closed_at) as closed_at, EXTRACT(DAY FROM closed_at - issues.created_at) AS DIFFDATE FROM issues, repo