summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-04 13:41:32 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-04 13:41:32 -0700
commitd7cfaa5f331f125d245d799964a712516f1a7782 (patch)
tree35b61d94ade6b638b17da804586b71cc9b412c59
parent264dadb59b046794880121eaad7f0f8082568cd1 (diff)
downloadfatcat-scholar-d7cfaa5f331f125d245d799964a712516f1a7782.tar.gz
fatcat-scholar-d7cfaa5f331f125d245d799964a712516f1a7782.zip
fix OA filter
-rw-r--r--fatcat_scholar/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index ce06fb7..2896d62 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -142,7 +142,7 @@ def do_fulltext_search(
# availability filters
if query.filter_availability == "oa":
- search = search.filter("term", tag="oa")
+ search = search.filter("term", tags="oa")
elif query.filter_availability == "everything":
pass
elif query.filter_availability == "fulltext" or query.filter_availability is None: