fake commit
This commit is contained in:
1 parent
fa1f6648a5
commit
996cf963ae
1 file changed
+3
-4
@@ -355,12 +355,11 @@ def generateScheduleV3(
|
|||||||
blockLens = [len(block) for block in blocks]
|
blockLens = [len(block) for block in blocks]
|
||||||
|
|
||||||
# Get clash
|
# Get clash
|
||||||
index = None
|
|
||||||
if len(exceptions) > 0:
|
if len(exceptions) > 0:
|
||||||
blocks = [elem for i, elem in enumerate(blocks) if i not in exceptions]
|
blocks = [elem for i, elem in enumerate(blocks) if i not in exceptions]
|
||||||
for index in exceptions: blocks.insert(index, ['nil'])
|
for index in exceptions: blocks.insert(index, ['nil'])
|
||||||
elif len(exceptions) == 0:
|
|
||||||
index = blockLens.index(max(blockLens))
|
index = blockLens.index(max(blockLens))
|
||||||
|
|
||||||
blockOut = f"block{index+1}"
|
blockOut = f"block{index+1}"
|
||||||
done = False
|
done = False
|
||||||
@@ -395,7 +394,7 @@ def generateScheduleV3(
|
|||||||
if moveIndex < len(blocks[index])-1:
|
if moveIndex < len(blocks[index])-1:
|
||||||
moveIndex += 1
|
moveIndex += 1
|
||||||
elif moveIndex == len(blocks[index])-1:
|
elif moveIndex == len(blocks[index])-1:
|
||||||
exceptions.append(index)
|
if index not in exceptions: exceptions.append(index)
|
||||||
done = True
|
done = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user