fix return value type
This commit is contained in:
parent
8182113666
commit
d73b3d5a25
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def get_all_variant_ids() -> List[int]:
|
|||
return [var_id for (var_id,) in database.cur.fetchall()]
|
||||
|
||||
|
||||
def variant_name(var_id) -> Optional[int]:
|
||||
def variant_name(var_id) -> Optional[str]:
|
||||
database.cur.execute(
|
||||
"SELECT name FROM variants WHERE id = %s",
|
||||
(var_id,)
|
||||
|
|
Loading…
Reference in a new issue