mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 05:06:33 +01:00
adur_worthing_gov_uk address lookup cases insensitive
This commit is contained in:
@@ -27,7 +27,6 @@ class Source:
|
||||
self._address = address
|
||||
|
||||
def fetch(self):
|
||||
|
||||
if self._postcode is None or self._address is None:
|
||||
raise ValueError("Either postcode or address is None")
|
||||
|
||||
@@ -43,7 +42,7 @@ class Source:
|
||||
|
||||
found_address = None
|
||||
for address in addresses_select.find_all("option"):
|
||||
if self._address in address.get_text():
|
||||
if self._address.upper() in address.get_text().upper():
|
||||
found_address = address
|
||||
|
||||
if found_address is None:
|
||||
|
||||
Reference in New Issue
Block a user