diff options
author | Tom Ritter <tom@ritter.vg> | 2016-01-31 13:22:08 -0600 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2016-01-31 13:22:08 -0600 |
commit | 3bea3bae59e7404b286b5bf97a6270270bfadd6c (patch) | |
tree | c9d1d7cf76681420587198d09abda761912c47c4 /jobs/__init__.py | |
parent | 1a8b46d940d3a4bc06700d15307191bb10008ea6 (diff) |
Refactor lots of things to allow you to be notified every so often, instead of every single time.
Diffstat (limited to 'jobs/__init__.py')
-rwxr-xr-x | jobs/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/__init__.py b/jobs/__init__.py index 9955164..0e780eb 100755 --- a/jobs/__init__.py +++ b/jobs/__init__.py @@ -44,10 +44,10 @@ class JobFinder: # It has to do with JobBase being imported multiple times (within jobs) or something if base.__name__ == 'JobBase': # A job was found, keep it - self._jobs.add(obj()) + self._jobs.add(obj(self.config)) elif base.__name__ == 'JobSpawner': spawner = obj() - for j in spawner.get_sub_jobs(): + for j in spawner.get_sub_jobs(self.config): self._jobs.add(j) |