format date/time for notifications

workspace
Brendan Howell 6 years ago
parent 6da9b8a54f
commit 6c73991a7b

@ -332,7 +332,7 @@ class PublicRelations(Bureau):
prn.set(text_type="B") prn.set(text_type="B")
prn.text("NOTIFICATIONS:\r\n") prn.text("NOTIFICATIONS:\r\n")
for note in notifications: for note in notifications:
prn.text(note["type"] + " " + note["created_at"] + " from " + prn.text(note["type"] + " " + str(note["created_at"]) + " from " +
note["account"] + ":\r\n" + note["status"] + "\r\n") note["account"] + ":\r\n" + note["status"] + "\r\n")
prn.text("\r\n\r\n") prn.text("\r\n\r\n")

Loading…
Cancel
Save