mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 03:04:09 +01:00
fix watenet_org_nz
This commit is contained in:
@@ -49,7 +49,7 @@ class WasteSearchResultsParser(HTMLParser):
|
||||
elif data.startswith("Next Service Date:"):
|
||||
self._withinCollectionDay = True
|
||||
elif self._withinCollectionDay:
|
||||
date = datetime.strptime(data, "%y/%m/%d").date()
|
||||
date = datetime.strptime(data, "%d/%m/%y").date()
|
||||
if self._wasteType is not None:
|
||||
self._entries.append(Collection(date, self._wasteType))
|
||||
self._withinCollectionDay = False
|
||||
|
||||
Reference in New Issue
Block a user