def insert_batch(self, batch): self.api.create_container_auto_batch( fatcat_openapi_client.ContainerAutoBatch( editgroup=fatcat_openapi_client.Editgroup( description=self.editgroup_description, extra=self.editgroup_extra), entity_list=batch))
def insert_batch(self, batch): """ Because we want to print a prefix/container_id match for each row, we require a special batch insert method """ eg = self.api.create_container_auto_batch( fatcat_openapi_client.ContainerAutoBatch( editgroup=fatcat_openapi_client.Editgroup( description=self.editgroup_description, extra=self.editgroup_extra), entity_list=batch)) for c_edit in eg.edits.containers: c = self.api.get_container(c_edit.ident) print("\t".join([c.extra['dblp']['prefix'], c.ident]), file=self.dblp_container_map_output)