aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-02-03 21:36:29 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-02-13 22:24:20 -0800
commitfd86c5ac74512a92bc5cbe25f8ec1f963d6cc1e6 (patch)
treed29b131fd7bc550e8452f0e220b1e06bb567f0ba
parent88d095fb369dea5c993c78e85be08df5283d6436 (diff)
downloadfatcat-fd86c5ac74512a92bc5cbe25f8ec1f963d6cc1e6.tar.gz
fatcat-fd86c5ac74512a92bc5cbe25f8ec1f963d6cc1e6.zip
clarify shadow filter code
-rw-r--r--python/fatcat_web/entity_helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/entity_helpers.py b/python/fatcat_web/entity_helpers.py
index 022d6f99..591dda80 100644
--- a/python/fatcat_web/entity_helpers.py
+++ b/python/fatcat_web/entity_helpers.py
@@ -56,7 +56,7 @@ def enrich_release_entity(entity):
if entity.files:
# remove shadows-only files with no URLs
entity.files = [f for f in entity.files
- if not (not f.urls and f.extra and f.extra.get('shadows'))]
+ if not (f.extra and f.extra.get('shadows') and not f.urls)]
if entity.filesets:
for fs in entity.filesets:
fs._total_size = sum([f.size for f in fs.manifest])