From 6c7814147bcb7f735abe3a33c34151a5374bc6b9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 6 Aug 2020 10:24:21 -0700 Subject: fix display of papers missing fulltext I think the bug happened now that we do not serialize the pydantic structures with empty values. A better solution might be to deserialize search hits into pydantic objects before rendering. --- fatcat_scholar/templates/search_macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/templates') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 0c366c9..d90af73 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -166,7 +166,7 @@
- {% if paper.fulltext.access_url %} + {% if paper.fulltext and fulltext.access_url %} {% if paper.fulltext.thumbnail_url %}