mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Add created_by_name to the Notification.serialize_for_csv.
The concern about performnace degrading has been thought through. We do not believe there will be an adverse effect since the high volume users do not send off messages.
This commit is contained in:
@@ -1324,7 +1324,8 @@ class Notification(db.Model):
|
||||
"template_type": self.template.template_type,
|
||||
"job_name": self.job.original_file_name if self.job else '',
|
||||
"status": self.formatted_status,
|
||||
"created_at": time.strftime('%A %d %B %Y at %H:%M', created_at_in_bst.timetuple())
|
||||
"created_at": time.strftime('%A %d %B %Y at %H:%M', created_at_in_bst.timetuple()),
|
||||
"created_by_name": self.get_created_by_name(),
|
||||
}
|
||||
|
||||
return serialized
|
||||
|
||||
Reference in New Issue
Block a user