From 675ecb96fe0e51f169c2d01683f02205ef327825 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Nov 2021 15:24:40 -0700 Subject: cleanup imports after fatcat_tools.transforms change --- python/fatcat_tools/workers/elasticsearch.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/workers/elasticsearch.py b/python/fatcat_tools/workers/elasticsearch.py index b8735a37..91f2796c 100644 --- a/python/fatcat_tools/workers/elasticsearch.py +++ b/python/fatcat_tools/workers/elasticsearch.py @@ -1,17 +1,20 @@ -import sys import json +import sys -import requests import elasticsearch +import requests from confluent_kafka import Consumer, KafkaException +from fatcat_openapi_client import ApiClient, ChangelogEntry, ContainerEntity, ReleaseEntity -from fatcat_openapi_client import ReleaseEntity, ContainerEntity, ApiClient, ChangelogEntry -from fatcat_tools import (public_api, entity_from_json, - release_to_elasticsearch, container_to_elasticsearch, +from fatcat_tools import entity_from_json, public_api +from fatcat_tools.transforms import ( changelog_to_elasticsearch, + container_to_elasticsearch, + release_to_elasticsearch, ) from fatcat_web.search import get_elastic_container_stats + from .worker_common import FatcatWorker -- cgit v1.2.3