diff --git a/jlu-health-reporter.py b/jlu-health-reporter.py index 89005bc..3e12562 100755 --- a/jlu-health-reporter.py +++ b/jlu-health-reporter.py @@ -78,7 +78,7 @@ def runTask(task): log.info(f'Reading config from {CONFIG}') config = json.load(open(CONFIG)) -for task in config.get('tasks', [{}]): +for task in config.get('tasks', config.get('users', [{}])): for k in ['username', 'password', 'transaction']: task.setdefault(k, config.get(k)) for k in ['fields', 'conditions']: