Make debug info optional
1 files changed, 3 insertions(+), 1 deletions(-) M check.py
M check.py +3 -1
@@ 76,7 76,8 @@ def view(state, t, styles) -> None: style = styles['plain'] t.addstr(i, 0, f'- {checkbox(checked)} {task}', style) - t.addstr(i + 2, 0, pformat(state), styles['plain']) + if state['debug']: + t.addstr(i + 2, 0, pformat(state), styles['plain']) def run(t, styles): @@ 84,6 85,7 @@ def run(t, styles): 'tasks': [(False, t) for t in TASKS], 'current_task_id': 0, 'running': True, + 'debug': False, } view(state, t, styles) while True: