aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/search.py b/gn3/api/search.py
index 820b74b..866b040 100644
--- a/gn3/api/search.py
+++ b/gn3/api/search.py
@@ -151,7 +151,7 @@ def parse_range(range_string: str) -> tuple[Maybe[str], Maybe[str]]:
def apply_si_suffix(location: str) -> int:
"""Apply SI suffixes kilo, mega, giga and convert to bases."""
suffixes = {"k": 3, "m": 6, "g": 9}
- if location[-1] in suffixes:
+ if location[-1].lower() in suffixes:
return int(Decimal(location[:-1])*10**suffixes[location[-1].lower()])
else:
return int(location)