From ee6b1113be1d703bb4cb160304f91b373e91ee7e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Nov 2021 18:18:33 -0700 Subject: re-fix some lint issues after big 'fmt' --- python/fatcat_tools/importers/common.py | 4 ++-- python/fatcat_tools/workers/elasticsearch.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/common.py b/python/fatcat_tools/importers/common.py index 2639c85a..0b68e5fe 100644 --- a/python/fatcat_tools/importers/common.py +++ b/python/fatcat_tools/importers/common.py @@ -21,9 +21,9 @@ from fatcat_openapi_client.rest import ApiException from fuzzycat.matching import match_release_fuzzy # TODO: refactor so remove need for this (re-imports for backwards compatibility) -from fatcat_tools.normal import LANG_MAP_MARC, b32_hex +from fatcat_tools.normal import is_cjk # noqa: F401 +from fatcat_tools.normal import LANG_MAP_MARC, b32_hex # noqa: F401 from fatcat_tools.normal import clean_str as clean # noqa: F401 -from fatcat_tools.normal import is_cjk from fatcat_tools.transforms import entity_to_dict DATE_FMT: str = "%Y-%m-%d" diff --git a/python/fatcat_tools/workers/elasticsearch.py b/python/fatcat_tools/workers/elasticsearch.py index 0d75f964..989f7f5d 100644 --- a/python/fatcat_tools/workers/elasticsearch.py +++ b/python/fatcat_tools/workers/elasticsearch.py @@ -133,8 +133,9 @@ class ElasticsearchReleaseWorker(FatcatWorker): key = entity.index # might need to fetch from API if not ( - entity.editgroup and entity.editgroup.editor - ): # pylint: disable=no-member # (TODO) + entity.editgroup # pylint: disable=no-member # (TODO) + and entity.editgroup.editor # pylint: disable=no-member # (TODO) + ): entity = api.get_changelog_entry(entity.index) else: key = entity.ident # pylint: disable=no-member # (TODO) -- cgit v1.2.3