diff --git a/src/libs/common_query_params.py b/src/libs/common_query_params.py index e1815cd..2aacad9 100644 --- a/src/libs/common_query_params.py +++ b/src/libs/common_query_params.py @@ -10,9 +10,9 @@ class CommonInventoryQueryParams: """ valid_models = [ - "^Ioniq(%20|\+|\s|\-)5((%20|+|-)N)?$", # Hyundai Ioniq 5 and 5 N # noqa: W605 - "^Ioniq(%20|+|\s|-)6$", # Hyundai Ioniq 6 # noqa: W605 - "^Kona(%20|+|\s)Ev$", # Hyundai Kona EV # noqa: W605 + r"^Ioniq(%20|\+|\s|\-)5((%20|\+|\-)N)?$", # Hyundai Ioniq 5 and 5 N # noqa: W605 + r"^Ioniq(%20|\+|\s|\-)6$", # Hyundai Ioniq 6 # noqa: W605 + r"^Kona(%20|\+|\s)Ev$", # Hyundai Kona EV # noqa: W605 "^N$", # Kia EV6 "^V$", # Kia Niro EV "^P$", # Kia EV9 @@ -47,7 +47,7 @@ def __init__( ): # Zip is passed in as a query parameter string. When casting to an int, the # leading 0s are stripped, so "00501" becomes 501. Padding with 0s as needed. - self.zip = f"{zip: 05}" + self.zip = f"{zip:05}" # noqa: E231 self.year = year self.radius = radius self.model = model