Skip to content

Commit

Permalink
Rename Confhub.data -> Confhub.models
Browse files Browse the repository at this point in the history
  • Loading branch information
morington committed Jun 30, 2024
1 parent 68142bd commit 7a59e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ logger = structlog.get_logger(__name__)
if __name__ == '__main__':
config = Confhub(developer_mode=True, logger_regs=[
LoggerReg(name="", level=LoggerReg.Level.DEBUG,)
]).data
LoggerReg(name="", level=LoggerReg.Level.DEBUG, )
]).models
logger.info("PostgreSQL", host=config.postgresql.host)
logger.info("Admins", host=config.test.admins)
Expand Down
2 changes: 1 addition & 1 deletion confhub/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(
config_list = list(config_path.glob('*'))
filtered_config_list = [file for file in config_list if not fnmatch.fnmatch(file.name, 'example__*')]

self.data = self.__load(*models, files=filtered_config_list)
self.models = self.__load(*models, files=filtered_config_list)

def __load(self, *models: BlockCore, files: List[str | Path]) -> Type[dataclasses.dataclass]:
merger = YamlFileMerger(*files)
Expand Down

0 comments on commit 7a59e0f

Please sign in to comment.