Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get jobs by name #1011

Merged
merged 8 commits into from Feb 19, 2018

Add space around '==' because of code style

  • Loading branch information...
paradox70 committed Dec 31, 2017
commit 5cbb5b95756e0f4675615dc54a95ef4f0c637f14
Copy path View file
@@ -351,7 +351,7 @@ def jobs(self):
def select_job(self, name):
"""Returns a tuple of jobs with the given name that are currently in the ``JobQueue``"""

return tuple(job[1] for job in self.queue.queue if job and job[1].name==name)
return tuple(job[1] for job in self.queue.queue if job and job[1].name == name)


class Job(object):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.