diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-13 12:28:42 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-13 12:28:42 -0800 |
commit | ecfdad950bca5cc52f368f2b014a7d37cb9bcbc7 (patch) | |
tree | d8bf5a00bd3c1346c6d167d01181ec723beb07a9 | |
parent | 2888327e9edca05d50bc6d71bf68166ee0fabcfe (diff) | |
download | fatcat-ecfdad950bca5cc52f368f2b014a7d37cb9bcbc7.tar.gz fatcat-ecfdad950bca5cc52f368f2b014a7d37cb9bcbc7.zip |
more simple fatcat_client imports
-rw-r--r-- | python/fatcat_tools/transforms.py | 3 | ||||
-rw-r--r-- | python/fatcat_tools/workers/elastic.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/python/fatcat_tools/transforms.py b/python/fatcat_tools/transforms.py index c454536b..ecaf3366 100644 --- a/python/fatcat_tools/transforms.py +++ b/python/fatcat_tools/transforms.py @@ -1,7 +1,6 @@ import collections -from fatcat_client.models import ReleaseEntity -from fatcat_client.api_client import ApiClient +from fatcat_client import ReleaseEntity, ApiClient def entity_to_json(entity): ac = ApiClient() diff --git a/python/fatcat_tools/workers/elastic.py b/python/fatcat_tools/workers/elastic.py index 46632792..22ec6fa6 100644 --- a/python/fatcat_tools/workers/elastic.py +++ b/python/fatcat_tools/workers/elastic.py @@ -3,7 +3,7 @@ import json import time import requests from fatcat_tools.workers.worker_common import FatcatWorker -from fatcat_client.models import ReleaseEntity +from fatcat_client import ReleaseEntity from fatcat_tools.transforms import * from pykafka.common import OffsetType |