mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54: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
|
@classmethod
|
||||||
def mini_get_all(cls, session: Session):
|
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
|
@classmethod
|
||||||
def mini_get_single(cls, session: Session, **kwargs):
|
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
|
@classmethod
|
||||||
def mini_get_single_from_royal(cls, session: Session, royal: "Royal"):
|
def mini_get_single_from_royal(cls, session: Session, royal: "Royal"):
|
||||||
|
|
Loading…
Reference in a new issue