Skip to content

Commit

Permalink
Use .meta in MetaData.get_value for correct types
Browse files Browse the repository at this point in the history
Fixes #388

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
  • Loading branch information
mbargull committed Mar 16, 2024
1 parent 8d2ef87 commit 689bf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_value(self, in_key: str, default: Any = None, autotype=True) -> Any:
if autotype and default is None and FIELDS.get(section, {}).get(key):
default = FIELDS[section][key]()

section = self.output.sections.get(section, {})
section = self.meta.get(section, {})
if isinstance(section, list):
return section[int(num)].get(key, default)
else:
Expand Down

0 comments on commit 689bf8e

Please sign in to comment.