From 7b0fe14d07277a0b9e6b709e933c1c40fd2af748 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 22 Jun 2023 21:49:42 +0200 Subject: fix custom layer config parsing --- fietsboek/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fietsboek/config.py b/fietsboek/config.py index 88d79a3..1da2193 100644 --- a/fietsboek/config.py +++ b/fietsboek/config.py @@ -285,7 +285,7 @@ def parse(config: dict) -> Config: continue provider_id = match.group(1) - prefix = f"{value}." + prefix = f"{key}." inner = {k[len(prefix) :]: v for (k, v) in config.items() if k.startswith(prefix)} inner["layer_id"] = provider_id inner["name"] = value -- cgit v1.2.3