summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-28 13:17:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-28 13:17:01 -0700
commit78b827f5053797cfdd57f494759f9dd7bd733494 (patch)
tree579d1264104128e925d04ae2e5c81925f1b84234 /python
parentd0c2dea01b390e93cbad490e13ddeeb943e09c37 (diff)
downloadfatcat-78b827f5053797cfdd57f494759f9dd7bd733494.tar.gz
fatcat-78b827f5053797cfdd57f494759f9dd7bd733494.zip
fix extra json length check
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/templates/release_view.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html
index c29492aa..a94d02f1 100644
--- a/python/fatcat/templates/release_view.html
+++ b/python/fatcat/templates/release_view.html
@@ -67,7 +67,7 @@ formal publications, etc) linked to the same work.
{% if release.extra != None %}
<h3>Extra Metadata (raw JSON)</h3>
{% for (key, value) in release.extra.items() %}
-<code><b>{{ key }}:</b> {% if len(value) > 80 %} {{ value[:80] }}... {% else %} {{ value }} {% endif %}</code><br>
+<code><b>{{ key }}:</b> {% if value|length > 80 %} {{ value[:80] }}... {% else %} {{ value }} {% endif %}</code><br>
{% endfor %}
{% endif %}