From aaddd8c336bf0e03565abfd3317ff9a60aa6a3f6 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 13 Jan 2025 11:10:03 -0800 Subject: [PATCH] more tests --- app/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 50c47ec76..f9be291b1 100644 --- a/app/models.py +++ b/app/models.py @@ -1702,7 +1702,10 @@ class Notification(db.Model): new_name = "status" value = getattr(obj, new_name) elif column.name == "created_at": - value = (obj.created_at.strftime("%Y-%m-%d %H:%M:%S"),) + if isinstance(obj.created_at, str): + value = obj.created_at + else: + value = (obj.created_at.strftime("%Y-%m-%d %H:%M:%S"),) elif column.name in ["sent_at", "completed_at"]: value = None elif column.name.endswith("_id"):