diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-04-13 17:13:55 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-04-13 17:13:55 -0700 |
commit | 7a701662c17467a9eb3402cf8641a7dd15f5ad1c (patch) | |
tree | e1bd9ecc8211feb2841b9be5f2b5439f1fafccdc /fuzzycat/utils.py | |
parent | 825c928ff9411b55f6bec5fa11f7771367ae3a24 (diff) | |
download | fuzzycat-7a701662c17467a9eb3402cf8641a7dd15f5ad1c.tar.gz fuzzycat-7a701662c17467a9eb3402cf8641a7dd15f5ad1c.zip |
make fmt
Diffstat (limited to 'fuzzycat/utils.py')
-rw-r--r-- | fuzzycat/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzzycat/utils.py b/fuzzycat/utils.py index bd7ceed..8e1ffb0 100644 --- a/fuzzycat/utils.py +++ b/fuzzycat/utils.py @@ -19,6 +19,7 @@ CHEM_FORMULA = re.compile(r"([A-Z]{1,2}[0-9]{1,2})+") ParsedPages = collections.namedtuple("ParsedPages", "start end count") + def es_compat_hits_total(resp): """ Given a search response dict, support ES6 and ES7 style total value. See: @@ -32,6 +33,7 @@ def es_compat_hits_total(resp): except TypeError: return resp["hits"]["total"] + def parse_page_string(s): """ Parse typical page strings, e.g. 150-180. |