Update code as per review comment.

This commit is contained in:
Rebecca Law
2017-03-17 10:01:28 +00:00
parent 4e48676607
commit d090451dd8

View File

@@ -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")