From d5953f450d7cea08dd119fb765f085018eca13d9 Mon Sep 17 00:00:00 2001 From: Bingwen Ma Date: Thu, 4 Jul 2019 01:26:27 +0800 Subject: [PATCH] fix api test fail Signed-off-by: Bingwen Ma --- augur/datasources/augur_db/augur_db.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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