From 5378899b2e375bb7fd630855a163a8b86a11e399 Mon Sep 17 00:00:00 2001 From: xenofem Date: Fri, 15 Mar 2024 16:58:36 -0400 Subject: [PATCH] just drop alphabet consecutive requirements altogether, we're already requiring that it's a single alphabet letter, it's fine --- dlibrary/dlibrary.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 50add4f..012d1dd 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -781,12 +781,6 @@ def alphabetic_numbering(entries, start_point): debug(f'Index value {index} is already present, giving up') return None 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 def check_extension(path, exts):