Skip to content

Commit

Permalink
Send request with 'priority' when it's not None
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyzheng committed Jan 12, 2021
1 parent bd74baa commit b2e508f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kobo/client/commands/cmd_resubmit_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run(self, *args, **kwargs):
failed = False
for task_id in tasks:
try:
resubmitted_id = self.hub.client.resubmit_task(task_id, force, priority)
resubmitted_id = self.hub.client.resubmit_task(task_id, *[arg for arg in [force, priority] if arg])
resubmitted_tasks.append(resubmitted_id)
except Exception as ex:
failed = True
Expand Down

0 comments on commit b2e508f

Please sign in to comment.