diff --git a/tasks.py b/tasks.py index 2fb0597..0d5fe27 100644 --- a/tasks.py +++ b/tasks.py @@ -64,7 +64,7 @@ def sequence_prompt(): sequences = get_sequences(sequence["tribe"]) print("Séquences trouvées:\n\t" + "\n\t".join(sorted([s.name for s in sequences]))) - sequence["num"] = len(sequences) + 1 + sequence["num"] = max([int(seq.name[0:2]) for seq in sequences]) + 1 sequence["title"] = prompt(f"Nom de la séquence (n°{sequence['num']}): ") known_tags = get_tags()