summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-14 19:03:06 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-14 19:03:06 -0800
commit546b5afcf91992d26437b47107eb9433cb1656bb (patch)
tree4d24c5311b7d1ea67d527c8ca9a4aafe0dc59ed4 /python/fatcat_tools/transforms.py
parentf468d3776c3d295d7d104cd3921146ab9618b21c (diff)
downloadfatcat-546b5afcf91992d26437b47107eb9433cb1656bb.tar.gz
fatcat-546b5afcf91992d26437b47107eb9433cb1656bb.zip
python tweaks for date/datetime rust fix
Diffstat (limited to 'python/fatcat_tools/transforms.py')
-rw-r--r--python/fatcat_tools/transforms.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/python/fatcat_tools/transforms.py b/python/fatcat_tools/transforms.py
index ecaf3366..e10c6ba5 100644
--- a/python/fatcat_tools/transforms.py
+++ b/python/fatcat_tools/transforms.py
@@ -42,11 +42,7 @@ def release_elastic_dict(release):
)
if release.release_date:
- # TODO: resolve why this can be either a string or datetime
- if type(release.release_date) == str:
- t['release_date'] = release.release_date
- else:
- t['release_date'] = release.release_date.strftime('%F')
+ t['release_date'] = release.release_date.strftime('%F')
container = release.container
container_is_kept = False