Skip to content

Commit b1d17cb

Browse files
Fixed an issue where subsection tags were not being translated properly
1 parent d71270e commit b1d17cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/data/sources.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ def construct(self, subsection: str, name: str) -> BasicDB | None:
169169
else:
170170
rawConfig = json.dumps(self.configData)
171171
rawConfig = rawConfig.replace("<SUB>", subsection)
172-
tags = self.subsections.get("tags", {})
172+
subsectionData = self.subsections.get(subsection, {})
173+
tags = subsectionData.get("tags", {})
173174
for tag, replaceValue in tags.items():
174175
rawConfig = rawConfig.replace(f"<SUB:{tag.upper()}>", replaceValue)
175176

0 commit comments

Comments
 (0)