From 7429a9576f6e9aca00e3ea1ff466396bb0e1b29f Mon Sep 17 00:00:00 2001 From: Paul Cowan Date: Tue, 17 Oct 2023 05:29:35 +1100 Subject: [PATCH] Reorder innerwest_nsw_gov_au APIs to work around duplicate data (#1330) Reorder Inner West Council possible APIs to attempt old Leichhardt Council before attempting old Marrickville Council. A single suburb is duplicated between the 3 lists: "Leichhardt" appears in both Leichhardt and Marrickville API endpoints. Only a single street in Leichhardt is listed by the Marrickville endpoint, and that with only a single property; this is likely bad data. This is not a lasting fix, as it doesn't protect against future duplicates, but there are thousands of properties in "true" Leichhardt, and only one in "false" Leichhardt, so at least this reordering fixes for most people. --- .../waste_collection_schedule/source/innerwest_nsw_gov_au.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/innerwest_nsw_gov_au.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/innerwest_nsw_gov_au.py index 91443d717..cb755358b 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/innerwest_nsw_gov_au.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/innerwest_nsw_gov_au.py @@ -29,8 +29,8 @@ # Inner West council merged 3 existing councils, but still hasn't merged their # data so details need to be found from one of three different databases. APIS = [ - "https://marrickville.waste-info.com.au/api/v1", "https://leichhardt.waste-info.com.au/api/v1", + "https://marrickville.waste-info.com.au/api/v1", "https://ashfield.waste-info.com.au/api/v1", ]