From d090451dd8a070a3d467ca8aa6809ecb7091011e Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Fri, 17 Mar 2017 10:01:28 +0000 Subject: [PATCH] Update code as per review comment. --- app/dao/jobs_dao.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/dao/jobs_dao.py b/app/dao/jobs_dao.py index aa4b210a7..1387bb65f 100644 --- a/app/dao/jobs_dao.py +++ b/app/dao/jobs_dao.py @@ -36,10 +36,7 @@ def all_notifications_are_created_for_job(job_id): .group_by(Job.id)\ .having(func.count(Notification.id) == Job.notification_count).all() - if query: - return True - else: - return False + return query @statsd(namespace="dao")