# HG changeset patch # User Sietse Brouwer # Date 1539250432 -7200 # Thu Oct 11 11:33:52 2018 +0200 # Node ID de32039e3c1bdbd193e2cc3b1dff4d997d16e8a9 # Parent 95f7793fe03b26493bfebeee668246df93d3b0be Make debug info optional diff --git a/check.py b/check.py --- a/check.py +++ b/check.py @@ -76,7 +76,8 @@ 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 @@ 'tasks': [(False, t) for t in TASKS], 'current_task_id': 0, 'running': True, + 'debug': False, } view(state, t, styles) while True: