

def bulk_sync(self, items):
    url = self.get_urls(items)['sync']
    read_response = self.requester.post(url, items)
    if (read_response.status_code != 200):
        message = 'Read error GET ({}): {}\n{}'.format(read_response.status_code, url, read_response.text)
        raise ValueError(message)
    for item_status in read_response.json():
        print(item_status)

dataset/ETHPy150Open impactlab/eemeter/eemeter/uploader/uploaders.py BaseUploader.bulk_sync/original