Skip to content

Commit

Permalink
Some changes missed when switching FromDict to use cls.
Browse files Browse the repository at this point in the history
  • Loading branch information
LswaN58 committed Oct 31, 2024
1 parent 189fc0c commit f727123
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ogd/common/schemas/tables/ColumnSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,24 @@ def FromDict(cls, name:str, all_elements:Dict[str, Any], logger:Optional[logging
else:
Logger.Log(_msg, logging.WARN)

_readable = ColumnSchema.ElementFromDict(all_elements=all_elements, logger=logger,
_readable = cls.ElementFromDict(all_elements=all_elements, logger=logger,
element_names=["readable"],
parser_function=ColumnSchema._parseReadable,
parser_function=cls._parseReadable,
default_value=name
)
_description = ColumnSchema.ElementFromDict(all_elements=all_elements, logger=logger,
_description = cls.ElementFromDict(all_elements=all_elements, logger=logger,
element_names=["description"],
parser_function=ColumnSchema._parseDescription,
parser_function=cls._parseDescription,
default_value="NO DESCRIPTION GIVEN"
)
_value_type = ColumnSchema.ElementFromDict(all_elements=all_elements, logger=logger,
_value_type = cls.ElementFromDict(all_elements=all_elements, logger=logger,
element_names=["type"],
parser_function=ColumnSchema._parseValueType,
parser_function=cls._parseValueType,
default_value="TYPE NOT GIVEN"
)
_name = ColumnSchema.ElementFromDict(all_elements=all_elements, logger=logger,
_name = cls.ElementFromDict(all_elements=all_elements, logger=logger,
element_names=["name"],
parser_function=ColumnSchema._parseName,
parser_function=cls._parseName,
default_value=name
)
_used = {"name", "readable", "description", "type"}
Expand Down

0 comments on commit f727123

Please sign in to comment.