mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
Update code as per review comment.
This commit is contained in:
@@ -36,10 +36,7 @@ def all_notifications_are_created_for_job(job_id):
|
|||||||
.group_by(Job.id)\
|
.group_by(Job.id)\
|
||||||
.having(func.count(Notification.id) == Job.notification_count).all()
|
.having(func.count(Notification.id) == Job.notification_count).all()
|
||||||
|
|
||||||
if query:
|
return query
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
@statsd(namespace="dao")
|
@statsd(namespace="dao")
|
||||||
|
|||||||
Reference in New Issue
Block a user