mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
fixes #26
This commit is contained in:
parent
e75e087857
commit
cb15abe56c
1 changed files with 2 additions and 2 deletions
4
db.py
4
db.py
|
@ -716,11 +716,11 @@ class Discord(Base, Mini):
|
|||
|
||||
@classmethod
|
||||
def mini_get_all(cls, session: Session):
|
||||
return [dict(row) for row in session.execute(sql_queries.all_query)]
|
||||
return [dict(row) for row in session.execute(sql_queries.all_music_query)]
|
||||
|
||||
@classmethod
|
||||
def mini_get_single(cls, session: Session, **kwargs):
|
||||
return session.execute(sql_queries.one_query, {"royal": kwargs["royal"].id}).fetchone()
|
||||
return session.execute(sql_queries.one_music_query, {"royal": kwargs["royal"].id}).fetchone()
|
||||
|
||||
@classmethod
|
||||
def mini_get_single_from_royal(cls, session: Session, royal: "Royal"):
|
||||
|
|
Loading…
Reference in a new issue