Feat: better sequence count
This commit is contained in:
parent
00922a93f8
commit
070a717235
2
tasks.py
2
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()
|
||||
|
Loading…
Reference in New Issue
Block a user