aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/fatcat_tools/importers/common.py4
-rw-r--r--python/fatcat_tools/workers/elasticsearch.py5
2 files changed, 5 insertions, 4 deletions
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)