mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-26 17:23:50 -04:00
more tests
This commit is contained in:
@@ -1702,7 +1702,10 @@ class Notification(db.Model):
|
|||||||
new_name = "status"
|
new_name = "status"
|
||||||
value = getattr(obj, new_name)
|
value = getattr(obj, new_name)
|
||||||
elif column.name == "created_at":
|
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"]:
|
elif column.name in ["sent_at", "completed_at"]:
|
||||||
value = None
|
value = None
|
||||||
elif column.name.endswith("_id"):
|
elif column.name.endswith("_id"):
|
||||||
|
|||||||
Reference in New Issue
Block a user