Commit 834eafb2 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Sort the files first

parent c42148b1
......@@ -62,6 +62,7 @@ def annotate(database, annotator, output_dir, force, jobs, **kwargs):
logger.debug('jobs: %s', jobs)
logger.debug('kwargs: %s', kwargs)
biofiles = database.objects(groups=None, protocol=database.protocol)
biofiles = sorted(biofiles)
if jobs > 1:
start, end = indices(biofiles, jobs)
biofiles = biofiles[start:end]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment