Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
TechCiel committed Nov 11, 2020
1 parent 0309850 commit ba8b545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jlu-health-reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit ba8b545

Please sign in to comment.