mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 09:12:06 -05:00
more tests
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user