Feat: better sequence count

This commit is contained in:
Bertrand Benjamin 2020-09-22 20:25:42 +02:00
parent 00922a93f8
commit 070a717235

View File

@ -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()