mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Update the flask-socketio config to play more nicely:
* Reverts run commands to what they previously were * Addresses some outstanding linting/formatting * Accounts for proper config initialization (CORS, Redis) * Updates dependencies and pulls in latest changes from main Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -898,10 +898,15 @@ def dao_update_delivery_receipts(receipts, delivered):
|
||||
updated {len(receipts)} notification in {elapsed_time} ms"
|
||||
)
|
||||
current_app.logger.info("✅✅✅✅ Reached delivery receipt processing")
|
||||
job_ids = db.session.execute(
|
||||
select(Notification.job_id)
|
||||
.where(Notification.message_id.in_(id_to_carrier.keys()))
|
||||
).scalars().all()
|
||||
job_ids = (
|
||||
db.session.execute(
|
||||
select(Notification.job_id).where(
|
||||
Notification.message_id.in_(id_to_carrier.keys())
|
||||
)
|
||||
)
|
||||
.scalars()
|
||||
.all()
|
||||
)
|
||||
|
||||
for job_id in set(job_ids):
|
||||
job = dao_get_job_by_id(job_id)
|
||||
|
||||
Reference in New Issue
Block a user