Skip to content

Commit

Permalink
Add some helpful comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Oct 2, 2023
1 parent 7bbb86b commit 9a683a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def __init__(self, _db=None, services: Optional[Services] = None, *args, **kwarg
self._session = _db

self._services = container_instance() if services is None else services

# Call init_resources() to initialize the logging configuration.
self._services.init_resources()

def run(self):
Expand Down
2 changes: 2 additions & 0 deletions scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,8 @@ class InstanceInitializationScript:
def __init__(self) -> None:
self._log: Optional[logging.Logger] = None
self._container = container_instance()

Check warning on line 820 in scripts.py

View check run for this annotation

Codecov / codecov/patch

scripts.py#L820

Added line #L820 was not covered by tests

# Call init_resources() to initialize the logging configuration.
self._container.init_resources()

Check warning on line 823 in scripts.py

View check run for this annotation

Codecov / codecov/patch

scripts.py#L823

Added line #L823 was not covered by tests

@property
Expand Down

0 comments on commit 9a683a7

Please sign in to comment.