From e22c4f5fd1183b86f6ba429378034b211a425548 Mon Sep 17 00:00:00 2001 From: Stefan Hagen Date: Wed, 29 Dec 2021 14:39:58 +0100 Subject: [PATCH] Spacification --- arbejdstimer/arbejdstimer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arbejdstimer/arbejdstimer.py b/arbejdstimer/arbejdstimer.py index e3e51b8f..154eff4e 100644 --- a/arbejdstimer/arbejdstimer.py +++ b/arbejdstimer/arbejdstimer.py @@ -158,6 +158,7 @@ def main(argv: Union[List[str], None] = None) -> int: print(f'configuration has {line_count} line{"" if line_count == 1 else "s"} of (indented) JSON content:') for line, content in enumerate(lines, start=1): print(f' {line:>{counter_width + 1}} | {content}') + if command == 'explain': print(f'consider {len(holidays)} holidays:') elif command == 'explain_verbatim': @@ -175,6 +176,7 @@ def main(argv: Union[List[str], None] = None) -> int: effective_range = DEFAULT_WORK_HOURS_CLOSED_INTERVAL print(f' + [{effective_range[0]}, {effective_range[1]}] (application default)') print('evaluation:') + error, message = apply(holidays, working_hours, command) if error: if command.startswith('explain'):