summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-03 18:14:44 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-03 18:14:44 -0700
commit48ee0ea51425d6050bb165632fa8bbf4a5b84a47 (patch)
tree4b4ef4f9e25eeaefe8bfb80d46426ffb76a8c0ac /fatcat_scholar/search.py
parentb66342bab2b58f94053066d9785fade037837b45 (diff)
downloadfatcat-scholar-48ee0ea51425d6050bb165632fa8bbf4a5b84a47.tar.gz
fatcat-scholar-48ee0ea51425d6050bb165632fa8bbf4a5b84a47.zip
compute and use tags
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r--fatcat_scholar/search.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index 76a2f70..d29e03b 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -123,8 +123,7 @@ def do_fulltext_search(query: FulltextQuery, deep_page_limit: int = 2000) -> Ful
# availability filters
if query.filter_availability == "oa":
- # TODO: real OA filter/flag
- search = search.filter("term", tag="OA")
+ search = search.filter("term", tag="oa")
elif query.filter_availability == "everything":
pass
elif query.filter_availability == "fulltext" or query.filter_availability == None: