Renamed functions in db.get

get_accounts -> get_account_names
get_all_accounts -> get_accounts
This commit is contained in:
2023-01-03 12:08:06 +03:00
parent 9ec66a3521
commit f9d163361a
2 changed files with 10 additions and 10 deletions

View File

@ -17,7 +17,7 @@ def get_master_pass(
return result
def get_accounts(
def get_account_names(
engine: Engine,
user_id: int,
*,
@ -34,7 +34,7 @@ def get_accounts(
return result
def get_all_accounts(engine: Engine, user_id: int) -> list[models.Account]:
def get_accounts(engine: Engine, user_id: int) -> list[models.Account]:
"""Returns a list of accounts of a user"""
statement = sqlmodel.select(models.Account).where(
models.Account.user_id == user_id,