diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-08 14:34:22 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-08 14:34:22 -0800 |
commit | fc74ae5843d78fd072fbdce483db4608577a4794 (patch) | |
tree | e24e94b6a101582a0e083f761755a2e6801bd5dc /python/fatcat_tools | |
parent | 13ab15af83a355b89aa3fdc032ad9bfca71cf350 (diff) | |
download | fatcat-fc74ae5843d78fd072fbdce483db4608577a4794.tar.gz fatcat-fc74ae5843d78fd072fbdce483db4608577a4794.zip |
entity_to_json -> entity_to_dict
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/__init__.py | 2 | ||||
-rw-r--r-- | python/fatcat_tools/transforms.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/__init__.py b/python/fatcat_tools/__init__.py index 06e59c14..e2b1e3a2 100644 --- a/python/fatcat_tools/__init__.py +++ b/python/fatcat_tools/__init__.py @@ -1,4 +1,4 @@ from .api_auth import authenticated_api, public_api from .fcid import fcid2uuid, uuid2fcid -from .transforms import entity_to_json, entity_from_json, release_to_elasticsearch +from .transforms import entity_to_dict, entity_from_json, release_to_elasticsearch diff --git a/python/fatcat_tools/transforms.py b/python/fatcat_tools/transforms.py index 843c00a5..0f957f9a 100644 --- a/python/fatcat_tools/transforms.py +++ b/python/fatcat_tools/transforms.py @@ -2,7 +2,7 @@ import collections from fatcat_client import ReleaseEntity, ApiClient -def entity_to_json(entity): +def entity_to_dict(entity): """ Hack to take advantage of the code-generated serialization code """ |