From 3bea3bae59e7404b286b5bf97a6270270bfadd6c Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Sun, 31 Jan 2016 13:22:08 -0600 Subject: Refactor lots of things to allow you to be notified every so often, instead of every single time. --- jobs/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jobs/__init__.py') 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) -- cgit v1.2.3