diff options
| author | bozo.kopic <bozo.kopic@gmail.com> | 2017-08-24 17:51:14 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo.kopic@gmail.com> | 2017-08-24 17:51:14 +0200 |
| commit | c594b1fca854a7b9fb73d854a9830143cd1032fc (patch) | |
| tree | 8c8b63cb4899238cf0f73a3f7bd08d9b70b16e81 /src_py/hatter/backend.py | |
| parent | d736cd1392a56ad5103867c72761cfcb4ccd4f1b (diff) | |
frontend
Diffstat (limited to 'src_py/hatter/backend.py')
| -rw-r--r-- | src_py/hatter/backend.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src_py/hatter/backend.py b/src_py/hatter/backend.py index 57c5192..8b78570 100644 --- a/src_py/hatter/backend.py +++ b/src_py/hatter/backend.py @@ -27,7 +27,8 @@ Job = util.namedtuple('Job', class Backend: - def __init__(self, db_path): + def __init__(self, db_path, repositories): + self._repositories = repositories self._next_job_id = 0 self._active = None self._queue = [] @@ -40,8 +41,12 @@ class Backend: self._run_loop_future = asyncio.ensure_future(self._run_loop()) @property + def repositories(self): + return self._repositories + + @property def active(self): - self._active + return self._active @property def queue(self): |
