Skip to content

Commit 919e94a

Browse files
Merge pull request #253 from ARGA-Genomes/subsectionTagFix
Subsection Tag Fix
2 parents d71270e + b1d17cb commit 919e94a

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)