summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/entity_helpers.py
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-06-05 11:23:29 +0000
committerMartin Czygan <martin@archive.org>2020-06-05 11:23:29 +0000
commit9dca5a8348f2ab34a013b25f3dae07c1f8db2c19 (patch)
tree41b1f6094714f8dd1b1b8e54028e1a32202205f4 /python/fatcat_web/entity_helpers.py
parent394433ff5e0aba301f2f26e03095079e0ca974ca (diff)
parent2f233a3b8c00385d4b215361a0fa09f93a05f8d9 (diff)
downloadfatcat-9dca5a8348f2ab34a013b25f3dae07c1f8db2c19.tar.gz
fatcat-9dca5a8348f2ab34a013b25f3dae07c1f8db2c19.zip
Merge branch 'bnewbold-better-button-links' into 'master'
better download button links See merge request webgroup/fatcat!57
Diffstat (limited to 'python/fatcat_web/entity_helpers.py')
-rw-r--r--python/fatcat_web/entity_helpers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_web/entity_helpers.py b/python/fatcat_web/entity_helpers.py
index d82ea0e9..e3d538e0 100644
--- a/python/fatcat_web/entity_helpers.py
+++ b/python/fatcat_web/entity_helpers.py
@@ -30,6 +30,8 @@ def enrich_creator_entity(entity):
return entity
def enrich_file_entity(entity):
+ if entity.state == "active":
+ entity._es = file_to_elasticsearch(entity)
return entity
def enrich_fileset_entity(entity):