aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-06-22 21:49:42 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-06-22 21:49:53 +0200
commit7b0fe14d07277a0b9e6b709e933c1c40fd2af748 (patch)
treeac16d3d89e3286753080b91bdf754e0561c7d0ae
parentb4026bf693483aa11b108453b02df9f63c6b226e (diff)
downloadfietsboek-7b0fe14d07277a0b9e6b709e933c1c40fd2af748.tar.gz
fietsboek-7b0fe14d07277a0b9e6b709e933c1c40fd2af748.tar.bz2
fietsboek-7b0fe14d07277a0b9e6b709e933c1c40fd2af748.zip
fix custom layer config parsing
-rw-r--r--fietsboek/config.py2
1 files changed, 1 insertions, 1 deletions
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