Archived
Renamed functions in db.get
get_accounts -> get_account_names get_all_accounts -> get_accounts
This commit is contained in:
1 parent
9ec66a3521
commit
f9d163361a
2 files changed
+10
-10
No files matched your search
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user