]> git.treefish.org Git - photosort.git/commitdiff
fixing bunch creation
authorAlexander Schmidt <alex@treefish.org>
Tue, 27 Oct 2020 00:05:34 +0000 (01:05 +0100)
committerAlexander Schmidt <alex@treefish.org>
Tue, 27 Oct 2020 00:05:34 +0000 (01:05 +0100)
src/bunch.py

index cfadb2d7b1cca8f7ffb3c7d42aa619c300da4fb5..1c3fe716d3cd403cfe1f6c4e3666dc8005747fb1 100644 (file)
@@ -19,8 +19,8 @@ class Bunch:
         source_idx = 1
         self._sources = []
         for src_dir_cfg in cfg['src_dirs']:
+            reg_db = os.path.join(cache_dir, "reg_%d_%d.db" % (idx, source_idx))
             self._sources.append(
-                reg_db = os.path.join(cache_dir, "reg_%d_%d.db" % (idx, source_idx))
                 Bunch.TriggeredSource(
                     source_idx,
                     DirTrigger(src_dir_cfg['path'], src_dir_cfg['cool_time'],