]> git.treefish.org Git - photosort.git/blobdiff - src/photosort-daemon.py
clean registry before registering
[photosort.git] / src / photosort-daemon.py
index 7e91b32f2490787a280e56319f3bdcaba586a68b..523d8cfedface2fe7719d25f2a558e1031dcfa1b 100755 (executable)
@@ -36,9 +36,11 @@ status = 0
 with open(args.config_file) as f:
     cfg = json.load(f)
 
+bunch_idx = 1
 bunches = []
 for bunch_cfg in cfg['bunches']:
-    bunches.append( Bunch(bunch_cfg) )
+    bunches.append( Bunch(bunch_idx, cfg['cache_dir'], bunch_cfg) )
+    bunch_idx += 1
 
 for bunch in bunches:
     bunch.start()