From 2cf2c93d15a7860985e791ff87968e67033649d8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 18 Jan 2022 19:37:22 -0800 Subject: fix before_1927 query filter typo --- fatcat_scholar/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index 57ee71c..bb0b155 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -200,7 +200,7 @@ def apply_filters(search: Search, query: FulltextQuery) -> Search: search = search.filter("range", year=dict(gte=2000, lte=this_year)) elif query.filter_time == "before_1925" or query.filter_time == "before_1927": # 1925 value retained for backwards compatibility in URLs - search = search.filter("range", year=dict(lte=1927)) + search = search.filter("range", year=dict(lt=1927)) elif query.filter_time == "all_time" or query.filter_time is None: pass else: -- cgit v1.2.3