Пример #1
0
 def __update_existing_document(self, document):
     index = document.meta.index
     document_id = document.uuid
     updated_on = datetime.datetime.now()
     data = {"doc": {"updated_on": updated_on}}
     self.__update_document(data, index, document_id)
     document.updated_on = ttls.datetime_to_str(updated_on)
Пример #2
0
 def __update_existing_document(self, document, updated_on):
     index = document.meta.index
     document_id = document.uuid
     data = {"doc": {"updated_on": updated_on}}
     self.__update_document(data, index, document_id)
     document.updated_on = ttls.datetime_to_str(updated_on)