161
161
def add_message(self, archive_uuid, message):
162
162
message_uuid = uuid.uuid4()
163
163
message_date, message_dict = _parse_message(message)
165
165
message_dict['date_created'] = (
166
166
datetime.datetime.utcnow().isoformat() + 'Z')
167
167
self.messages.insert(message_uuid, message_dict)