This commit is contained in:
Kenneth Kehl
2024-12-18 07:44:24 -08:00
parent 7cf747d35a
commit 48c3cebc72
3 changed files with 48 additions and 36 deletions

View File

@@ -730,16 +730,6 @@ def dao_update_delivery_receipts(receipts, delivered):
new_receipts.append(r)
receipts = new_receipts
print(receipts)
statuses = {}
for r in receipts:
if r["status"].lower() == "success":
statuses[r["notification.messageId"]] = NotificationStatus.DELIVERED
else:
statuses[r["notification.messageId"]] = NotificationStatus.FAILED
print(f"HERE ARE STATUSES {statuses}")
id_to_carrier = {
r["notification.messageId"]: r["delivery.phoneCarrier"] for r in receipts
@@ -777,6 +767,5 @@ def dao_update_delivery_receipts(receipts, delivered):
),
)
)
print(stmt)
db.session.execute(stmt)
db.session.commit()