From e6d7df8a7dd43a0984db80a79b1f1d1ae48c6c65 Mon Sep 17 00:00:00 2001 From: Martin Vonk Date: Tue, 17 Dec 2024 15:37:57 +0100 Subject: [PATCH] rstrip bgt url --- tests/test_008_waterschappen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_008_waterschappen.py b/tests/test_008_waterschappen.py index fa23768b..e97a6eca 100644 --- a/tests/test_008_waterschappen.py +++ b/tests/test_008_waterschappen.py @@ -22,7 +22,7 @@ def bgt_bronhoudername(bgt): tree = html.fromstring(response.content) dates = to_datetime( [ - "-".rstrip("-").join(x.rsplit("-", 3)[-3:]) + "-".join(x.rstrip("-").rsplit("-", 3)[-3:]) for x in tree.xpath("//a/@href") if "bronhoudercodes" in x ],