Exemple #1
0
 def updating_records(self):
     '''
     data operation method to update records
     '''
     json_data = File_Handle.read_json()
     try:
         update_result = MongoDB.update_records(self.db_config,
                                                json_data['query'],
                                                json_data['value'])
     except Exception as e:
         return e
     else:
         return update_result