X-Git-Url: http://git.treefish.org/~alex/photosort.git/blobdiff_plain/b064196ba7ecae2a58867e315f60265661c78c4c..f74cea71b4539995483ec2393f22d7592d03632b:/src/photosort-daemon.py?ds=sidebyside diff --git a/src/photosort-daemon.py b/src/photosort-daemon.py index 7e91b32..e345b83 100755 --- a/src/photosort-daemon.py +++ b/src/photosort-daemon.py @@ -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, bunch_cfg) ) + bunch_idx += 1 for bunch in bunches: bunch.start()