diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 18:18:33 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 18:18:33 -0700 |
commit | ee6b1113be1d703bb4cb160304f91b373e91ee7e (patch) | |
tree | d113b6697fcf1e41a18588f808320032852155f7 /python/fatcat_tools | |
parent | 31d1a6a713d177990609767d508209ced19ca396 (diff) | |
download | fatcat-ee6b1113be1d703bb4cb160304f91b373e91ee7e.tar.gz fatcat-ee6b1113be1d703bb4cb160304f91b373e91ee7e.zip |
re-fix some lint issues after big 'fmt'
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/importers/common.py | 4 | ||||
-rw-r--r-- | python/fatcat_tools/workers/elasticsearch.py | 5 |
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) |