diff --git a/src/daylio_to_md/utils.py b/src/daylio_to_md/utils.py index f372ebb..b87f89a 100755 --- a/src/daylio_to_md/utils.py +++ b/src/daylio_to_md/utils.py @@ -278,7 +278,7 @@ def validate_fieldnames(self, fieldnames, expected_fields) -> set[str]: expected_field not in fieldnames } if len(missing_strings) > 0: - self.__logger.critical(CSV_FIELDS_MISSING.format(', '.join(missing_strings))) + self.logger.critical(CSV_FIELDS_MISSING.format(', '.join(missing_strings))) raise InvalidDataInFileError(expected_fields, fieldnames) self.logger.debug(CSV_ALL_FIELDS_PRESENT.format(', '.join(missing_strings))) diff --git a/tests/files/scenarios/ok/expect/2022-10-26.md b/tests/files/scenarios/ok/expect/2022-10-26.md index 3b3afa6..7be80d7 100644 --- a/tests/files/scenarios/ok/expect/2022-10-26.md +++ b/tests/files/scenarios/ok/expect/2022-10-26.md @@ -2,10 +2,6 @@ tags: daylio --- -## captivated | 22:00 -#at-the-office #board-game #colleague-interaction #big-social-gathering -Sed ut est interdum - ## tired | 20:00 | Mauris rutrum diam #allegro #at-the-office #board-game #colleague-interaction #big-social-gathering Quisque dictum odio quis augue consectetur, at convallis żodio aliquam.