From 30d83fc99eac41f909f0907c9faad73897721eec Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 13 Nov 2018 22:52:16 -0800 Subject: to_elastic_dict -> release_elastic_dict --- python/fatcat_tools/workers/elastic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/fatcat_tools/workers') diff --git a/python/fatcat_tools/workers/elastic.py b/python/fatcat_tools/workers/elastic.py index 22ec6fa6..119a6a26 100644 --- a/python/fatcat_tools/workers/elastic.py +++ b/python/fatcat_tools/workers/elastic.py @@ -2,6 +2,7 @@ import json import time import requests +from fatcat_tools.transforms import release_elastic_dict from fatcat_tools.workers.worker_common import FatcatWorker from fatcat_client import ReleaseEntity from fatcat_tools.transforms import * @@ -42,6 +43,6 @@ class FatcatElasticReleaseWorker(FatcatWorker): self.elastic_index, release.ident) print("Updating document: {}".format(elastic_endpoint)) - resp = requests.post(elastic_endpoint, json=release.to_elastic_dict()) + resp = requests.post(elastic_endpoint, json=release_elastic_dict(release)) assert resp.status_code in (200, 201) consumer.commit_offsets() -- cgit v1.2.3