We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3687455 commit 477f048Copy full SHA for 477f048
src/config_generator/theme_reader.py
@@ -91,7 +91,10 @@ def read_metadata_for_theme(self, item):
91
self.logger.warning(
92
"Could not get WMS capabilities for %s" % url
93
)
94
- wms_capabilities["print_templates"] = wms_capabilities.get('print_templates', []) + self.print_layouts
+ project_layouts = wms_capabilities.get('print_templates', [])
95
+ project_layouts_names = [layout['name'] for layout in project_layouts]
96
+ wms_capabilities["print_templates"] = project_layouts + \
97
+ [layout for layout in self.print_layouts if layout["name"] not in project_layouts_names]
98
99
wfs_capabilities = {}
100
if self.generate_wfs_services:
0 commit comments