mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 10:28:55 -04:00
more code review feedback
This commit is contained in:
@@ -46,6 +46,6 @@ def fetch_count_of_complaints(start_date, end_date):
|
||||
stmt = (
|
||||
select(func.count())
|
||||
.select_from(Complaint)
|
||||
.filter(Complaint.created_at >= start_date, Complaint.created_at < end_date)
|
||||
.where(Complaint.created_at >= start_date, Complaint.created_at < end_date)
|
||||
)
|
||||
return db.session.execute(stmt).scalar() or 0
|
||||
|
||||
Reference in New Issue
Block a user