Remove letter_choices() redundancy.
This commit is contained in:
parent
76eec9c82c
commit
069873de02
|
@ -147,9 +147,6 @@ def add_letter() -> Response:
|
||||||
|
|
||||||
|
|
||||||
def letter_choices(letters: list[db.Letter]) -> list[(int, str)]:
|
def letter_choices(letters: list[db.Letter]) -> list[(int, str)]:
|
||||||
if len(letters) == 0:
|
|
||||||
return []
|
|
||||||
|
|
||||||
return [(i + 1, letter.title) for i, letter in enumerate(letters)]
|
return [(i + 1, letter.title) for i, letter in enumerate(letters)]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue