label_studio/projects/functions/next_task.py
def _try_tasks_with_overlap(tasks):
    """Filter out tasks without overlap (doesn't return next task)"""
    tasks_with_overlap = tasks.filter(overlap__gt=1)
    if tasks_with_overlap.exists():
        return None, tasks_with_overlap
    else:
        return None, tasks.filter(overlap=1)
Filter out tasks without overlap (doesn't return next task)
Filter out tasks without overlap (doesn't return next task)
Filter out tasks without overlap ( doesn ' t return next task )
def _try_tasks_with_overlap(tasks):
    tasks_with_overlap = tasks.filter(overlap__gt=1)
    if tasks_with_overlap.exists():
        return None, tasks_with_overlap
    else:
        return None, tasks.filter(overlap=1)
def _try_tasks_with_overlap ( tasks ) : tasks_with_overlap = tasks . filter ( overlap__gt = 1 ) if tasks_with_overlap . exists ( ) : return None , tasks_with_overlap else : return None , tasks . filter ( overlap = 1 )
Filter out tasks without overlap (doesn't return next task)
Filter out tasks without overlap ( doesn ' t return next task )
"""Filter out tasks without overlap (doesn't return next task)"""
tasks