aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat_scholar/search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index 0985081..8fbdae0 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -102,7 +102,7 @@ def do_fulltext_search(
query.q = "*"
# type filters
- if query.filter_type == "papers":
+ if query.filter_type == "papers" or query.filter_type is None:
search = search.filter(
"terms", type=["article-journal", "paper-conference", "chapter",]
)
@@ -110,7 +110,7 @@ def do_fulltext_search(
search = search.filter("terms", type=["report", "standard",])
elif query.filter_type == "datasets":
search = search.filter("terms", type=["dataset", "software",])
- elif query.filter_type == "everything" or query.filter_type is None:
+ elif query.filter_type == "everything":
pass
else:
raise ValueError(