just drop alphabet consecutive requirements altogether, we're already requiring that it's a single alphabet letter, it's fine

This commit is contained in:
xenofem 2024-03-15 16:58:36 -04:00
parent a4e8df08e8
commit 5378899b2e

View file

@ -781,12 +781,6 @@ def alphabetic_numbering(entries, start_point):
debug(f'Index value {index} is already present, giving up') debug(f'Index value {index} is already present, giving up')
return None return None
alphabetized[(index,)] = [entry] alphabetized[(index,)] = [entry]
indices = list(alphabetized.keys())
indices.sort()
for i in range(1, len(indices)):
if not (indices[i][0] - indices[i-1][0] == 1 or (indices[i-1][0] == 0 and indices[i][0] == 2)):
debug(f'Adjacent indices {indices[i][0]} and {indices[i-1][0]} are not consecutive, giving up')
return None
return alphabetized return alphabetized
def check_extension(path, exts): def check_extension(path, exts):