mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Remove redundant join
This was left over from when we needed to tell if a notification was sent by a crown or non-crown service.
This commit is contained in:
@@ -750,9 +750,7 @@ def dao_get_letters_to_be_printed(print_run_deadline, postage, query_limit=10000
|
|||||||
https://docs.sqlalchemy.org/en/13/orm/query.html?highlight=yield_per#sqlalchemy.orm.query.Query.yield_per
|
https://docs.sqlalchemy.org/en/13/orm/query.html?highlight=yield_per#sqlalchemy.orm.query.Query.yield_per
|
||||||
https://www.mail-archive.com/sqlalchemy@googlegroups.com/msg12443.html
|
https://www.mail-archive.com/sqlalchemy@googlegroups.com/msg12443.html
|
||||||
"""
|
"""
|
||||||
notifications = Notification.query.join(
|
notifications = Notification.query.filter(
|
||||||
Notification.service
|
|
||||||
).filter(
|
|
||||||
Notification.created_at < convert_bst_to_utc(print_run_deadline),
|
Notification.created_at < convert_bst_to_utc(print_run_deadline),
|
||||||
Notification.notification_type == LETTER_TYPE,
|
Notification.notification_type == LETTER_TYPE,
|
||||||
Notification.status == NOTIFICATION_CREATED,
|
Notification.status == NOTIFICATION_CREATED,
|
||||||
|
|||||||
Reference in New Issue
Block a user