diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-01-18 19:37:22 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-01-18 19:37:22 -0800 |
commit | 2cf2c93d15a7860985e791ff87968e67033649d8 (patch) | |
tree | c7a0d6c4d7707e0eed6bc39c4514aea418998e2a | |
parent | 647f034573a4aa7a3191da14c8b6b1321bfe0d65 (diff) | |
download | fatcat-scholar-2cf2c93d15a7860985e791ff87968e67033649d8.tar.gz fatcat-scholar-2cf2c93d15a7860985e791ff87968e67033649d8.zip |
fix before_1927 query filter typo
-rw-r--r-- | fatcat_scholar/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |