Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 committed Dec 13, 2023
1 parent 86af2a7 commit 6e1df66
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions arc/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,19 +786,17 @@ def run_job(self,
if trsh:
if isinstance(trsh, (str, list)):
args['trsh'] = {'trsh': trsh}

Check warning on line 788 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L788

Added line #L788 was not covered by tests
# if trsh is a dictionary
elif isinstance(trsh, dict):
if 'trsh' in args:
for key, value in trsh.items():
if key in args['trsh']:
if isinstance(args['trsh'][key], list) and isinstance(value, list):
args['trsh'][key].extend(value)
else:
args['trsh'][key] = value
elif isinstance(trsh, dict) and 'trsh' in args:
for key, value in trsh.items():
if key in args['trsh']:
if isinstance(args['trsh'][key], list) and isinstance(value, list):
args['trsh'][key].extend(value)

Check warning on line 793 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L793

Added line #L793 was not covered by tests
else:
args['trsh'][key] = value

Check warning on line 795 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L795

Added line #L795 was not covered by tests
else:
args['trsh'] = trsh
else:
args['trsh'][key] = value

Check warning on line 797 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L797

Added line #L797 was not covered by tests
else:
args['trsh'] = trsh

Check warning on line 799 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L799

Added line #L799 was not covered by tests
if shift:
args['shift'] = shift
if scan_trsh:
Expand Down

0 comments on commit 6e1df66

Please sign in to comment.