]> git.treefish.org Git - photosort.git/blobdiff - src/bunch.py
clean registry before registering
[photosort.git] / 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'],